Firefox Scrollbar Pushing Content Left
I just spent about an hour trying to work out why a CSS layout I was working on suddenly jumped left when I clicked on certain pages in Firefox, but not in Internet Explorer.
It turns out I made the silly mistake of forgetting Firefox pushes content left when the vertical scroll bar appears! ie. If you’re on a page that doesn’t have enough content to fill the screen and you then click on a page with more content than can fit on the screen, the vertical scroll bar that is automatically shown will push your content to the left!
I wonder if this feature can be turned off in FF? I know people love to bash IE but it seems to behave better with scroll bars than FF..
July 3rd, 2006 at 8:15 am
[…] Firefox Scrollbar Pushing Content LeftFirefox Scrollbar Pushing Content Left June 28th, 2006 I just spent about an hour trying to work out why a CSS layout I was working on suddenly jumped… […]
November 7th, 2010 at 4:13 am
Since this post is over four years old I may be a little late, but nobody’s posted the solution yet :p
CSS:
html {overflow-y: scroll;}
The “problem” is now present in Internet Explorer 8 and all versions of Google Chrome… It REALLY messes things up when the height of the page changes due to dynamic content…