Jeanluca Scaljeri Jeanluca Scaljeri - 3 months ago 25
CSS Question

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 by 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


maybe you can use something like that?

body {
    overflow-y: hidden;

body:hover {
    overflow-y: scroll;