I have a double scroll bar on my website in Chrome and Firefox (both browsers are up to date). I have been researching the web and stackoverflow and have tried following suggested options on the html element:
html { overflow: hidden; }
- afterwards -
html { overflow: auto; }
- and - html { overflow: scroll; }
None of them got rid of the double bar, even worse some blocked me from scrolling at all.
I'm not sure which other element to target or what might be causing this. Does anyone have a suggestion?
The website is https://www.lekkerlimburgs.be
Programs with a fixed window size or do not have word wrap enabled display a horizontal scroll bar as the window is resized. For these programs, there would be two scroll bars, a horizontal and vertical scroll bar.
2. Type "Remove Scrollbars" (without quotes) in the search box and press "Enter." Click the "Remove Scrollbars" option located on top of the search results.
Double scrollbar appears on the website So you should either turn off the Overflow-X option, as you most likely won't need it anyway, or find the height CSS code and remove it.
Check if Windows-style overlay scrollbars is visible. Select Enabled from the drop-down button. To disable the same, select Disabled option. Restart your browser.
Alternatively, if you cant locate the source of the bug as explained by Gant, you can Use Browser developer tools to isolate the offending tag. What i do is
overflow:auto
This approach may be better if you have tons of stylesheets and dont know how to go about it
*Adapted from Chris Coyier Fixing Unintended Body Overflow
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With