Forum Moderators: not2easy
How may I set the body (or anything else) to pre-set room for the vertical bar thus avoiding that left shift effect?
Of course I could (out of desperation) use: overflow-y: hidden;
But one should not be messing with a user browser
Any solution? Any hack?
Thanks
html{
height:100.1%;
overflow-y:scroll;
overflow: -moz-scrollbars-vertical;
}
The IE fix: I'd stuff it in a conditional comment and make sure IE8 never gets to see it. We can't let IE8 have any excuse to continue the bugs from the past cause we have the fixes already there ;-).
The overflow-y is CSS3, and the validators for now will flag it as "too soon". I'd add a comment for myself if I were you just to make sure not to forget it.
As I've time I'll play a bit with the -moz "value" on overflow. That's one I didn't know existed.
The documentation for it is at: [developer.mozilla.org...]
And I found it interesting to note it's supposed to also means no horizontal scroll bars will appear. Not sure if that's a problem for you or not.
Aside of that thanks for reporting back what you found.
How may I set the body (or anything else) to pre-set room for the vertical bar thus avoiding that left shift effect?
apart from the fact that you're posssibly assuming that everyone is seeing or is going to see this "shift" (shh secret info.. they will never do unless they're comparing pixel perfect pages side by side as per the designers vision!)
How may I set the body (or anything else) to pre-set room
body {min-height: 100.01%;}
substitute "body" for whichever element so fits, but make sure that the inheritance is in place.. alternatively don't worry about the "shift" only pixel perfect designers notice it ;)