Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Content on pages with scrollbars shift in IE6 SP2

12:46 am on Feb 15, 2009 (gmt 0)

New User

10+ Year Member

joined:June 30, 2008
posts: 3
votes: 0

Hi, I'm trying to figure out a bug with a site that will be viewed in IE6 SP2. Basically the content was centered (on intro page with no scrollbar) but we realized once in test, that the content shifts left on pages that are longer and have scrollbars. We tried two things - one worked in every browser but IE6 SP2 and the other was to put a scrollbar even on pages that didn't need it thinking that would do the trick. Still no luck.

1st try (but we found this is only "partially" supported in IE6 SP2)

html {
overflow-y: scroll;

2nd try
html { height: 100%; margin-bottom: 1px; }


Funny thing is before any fix, the content shifted left to fit the scrollbar. Now with both methods above, we see a slight shift right on longer pages instead.

I'm not the developer so if I need to post more code/other info for you to help, let me know. I GREATLY appreciate any help you can give.

7:38 pm on Feb 16, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 29, 2003
votes: 0

Your going to get that shift on pages that are longer. I have found no good option for it other then make sure in your design you don't have any short pages. You could also set all your pages to a fixed height then have the content in the pages scroll in the div rather then the whole browser window scroll. On a side note the jump isn't that bad. it's just the browser changing it's view area to accommodate the scroll bar