homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Content on pages with scrollbars shift in IE6 SP2
lkim13

5+ Year Member



 
Msg#: 3849750 posted 12:46 am on Feb 15, 2009 (gmt 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.

 

Sarah Atkinson

10+ Year Member



 
Msg#: 3849750 posted 7:38 pm on Feb 16, 2009 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved