Skip to content

Commit f489288

Browse files
authored
Update button to fix horizontal scroll on mobile
Since the button is causing mobile screen users to have a horizontal scroll, I've fixed it giving it a max-height. This removes the horizontal scroll that the button was causing on the entire page for mobile readers.
1 parent 03b8f2e commit f489288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/1-document/11-coordinates/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Additionally, there are derived properties:
3636
```online
3737
For instance click this button to see its window coordinates:
3838
39-
<p><input id="brTest" type="button" value="Get coordinates using button.getBoundingClientRect() for this button" onclick='showRect(this)'/></p>
39+
<p><input id="brTest" type="button" style="max-width: 90vw;" value="Get coordinates using button.getBoundingClientRect() for this button" onclick='showRect(this)'/></p>
4040
4141
<script>
4242
function showRect(elem) {

0 commit comments

Comments
 (0)