Jeanluca Scaljeri Jeanluca Scaljeri - 18 days ago 5
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

Answer

maybe you can use something like that?

body {
    margin:0;
    padding:0;
    overflow-y: hidden;

}
body:hover {
    overflow-y: scroll;
}

http://jsfiddle.net/4RSbp/165/