Quick CSS to hide disabled scroll bars in Internet Explorer

The scroll bars in Internet Explorer never go away. If they're not needed, they just disable. To me this is an incorrect behavior, and it was really causing problems on a site I'm working on where I'm handling the scroll bars inside of a wrapper div anyway so I didn't want two scroll bars.

Turns out with one little bit of CSS they go away.

CSS:
  1. html { overflow: auto; }

Poof, the disabled scroll bars are gone but will come back if needed.

Question, Comments...

Do you have more questions. Please either leave a comment below or join us in our new forum.

Leave a Reply