Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome (windows) does not hide scrollbar

I have this scrollable div, which (on my Mac in Chrome) hides the scrollbar when I don't scroll. On windows 8 however, it doesn't work in Chrome and Firefox.

Ie doesn't support this too, but I've enabled it using the following CSS:

-ms-overflow-style: -ms-autohiding-scrollbar;

Is there any way to enable this behaviour for Chrome and Firefox

Here is a jsfiddle

like image 966
Jeanluca Scaljeri Avatar asked Jul 23 '14 13:07

Jeanluca Scaljeri


People also ask

How do I hide the scroll bar in Chrome?

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.

How do I stop scrollbar from appearing?

To hide the scrollbar and disable scrolling, we can use the CSS overflow property. This property determines what to do with content that extends beyond the boundaries of its container. To prevent scrolling with this property, just apply the rule overflow: hidden to the body (for the entire page) or a container element.

How do I hide the scroll bar in Windows 11?

It's also much easier and safer than the next method. You can enable or disable disappearing scrollbars from the Settings app. Press Win + I to launch the Settings app and navigate to Accessibility > Visual effects. Turn the toggle on next to the option that reads Always show scrollbars.


1 Answers

Scrollbar is hiding on your Mac because this is a system preference (System Preferences > General > Show scroll bars). And unfortunatelly there is no version of -ms-overflow-style for Firefox or Chrome.

like image 199
marcelo2605 Avatar answered Oct 22 '22 06:10

marcelo2605