I’m running into a small but annoying bug I can’t seem to fix: I’m having a scrollbar show up on the published site due to some extra horizontal space on certain screen sizes (13"-15" MacBooks, and some mobile phones).
Things I’ve tried:
Adjusting footer width and/or max width to 100vw
Adjusting all other section elements’ width and/or mad width to 100vw
Checked for excessive padding or negative margin
Checked for non-responsive width declarations (some elements have a width of 120rem+, but they’re all position: absolute, so it should be fine).
Any input is much appreciated! The staging site can be found here.
Good morning and thanks for taking the time to look @WisdomainUK. I’ve tried adjust the width of the “Hero Gradient V3” to various widths (including 90VW), but the same issue persists …
So I reset the margins on both those elements and set their parent elements to Flex: vertical, Align: centre, but the issue was still there.
However, I had a mouse plugged in and on a hunch unplugged it; turns out that was causing a scrollbar to appear and thereby expanding the viewport, creating the extra space…
It weirdly enough doesn’t happen on other webpages, so I’m wondering if it might be a better idea to just set the sections’ min width to 100vw, rather than defining a fixed width?
@WisdomainUK Very odd. I’ve implemented the same solution as before but the scrollbar still shows up when the mouse is plugged in (but disappears as soon as I unplug it). I’ve tested on Chrome and Firefox, as well as on a colleague’s computer with a larger screen and it seems to be fixed this way. I even tried connecting an Apple Magic Mouse and the scrollbar stays away.