Unnecessary IE scroll bars

They have: 222 posts

Joined: Sep 1999

Note: this isn't the problem caused by using depreciated tags w/ a doctype that doesn't support them OR the one caused by the inner width of the page being too big.

By default IE6 adds a vertical scrollbar to the page, even if the content isn't overflowing vertically. To get rid of that annoying mistake I added overflow: auto; to the html{} section of my stylesheet. That takes it away on pages that don't overflow either horizontally or vertically, but if a pages overflows vertically it adds both a horizontal and vertical scrollbar even though the page doesn't overflow horizontally. FF handles it fine. Any ideas for fixes or workarounds?

example: http://philwing.com/new/journal/

dk01's picture

He has: 516 posts

Joined: Mar 2002

This is something I wouldn't mess with. I know its tempting and is annoying to have but IE users expect this to be the case and therefore isn't worth screwing with.

DaveyBoy's picture

They have: 453 posts

Joined: Feb 2003

The way that firefox slightly shifts the page across if it has vertical scroll is more annoying to me, i'd prefer that it always had the vertical bar, like IE, so that the site didn't keep shuffling over a few pixels.

Busy's picture

He has: 6,151 posts

Joined: May 2001

Take a look at http://www.positioniseverything.net/articles/onetruelayout/
also in the appendices under appendix B

These also might come in handy
Browser specific bug demos:

* Explorer Exposed! Bugs found only in Internet Explorer.
* Opera Omnibus Bugs found only in Opera.
* Open Source Oopsies Bugs found only in Gecko based browsers (N6+, Mozilla, Camino, etc.)

I have another site bookmarked with all (a lot) of the browser bugs and hacks to fix a lot of them but can't find it. The first link is pretty good on a lot of bug fixes.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.