Home › Forums › Other › Remove Page-Shift in FF due to Scrollbar › Re: Remove Page-Shift in FF due to Scrollbar
February 26, 2009 at 9:24 pm
#54359
Chris Coyier
Keymaster
That’s a good one, I haven’t used that before I don’t think. It’s a tricky subject actually. Since some browsers experience the "jump" between not having a scroll bar and having a scrollbar (on centered sites) and some do not.
The technique I typically use is:
Code:
overflow-y: scroll;
…which actually doesn’t validate (who cares).
A while back I tried a bunch of different ways:
https://css-tricks.com/eliminate-jumps-i … croll-bar/