lystar
04-16-2009, 05:37 PM
Yesterday I gave advice to someone on this board to use:
html {
overflow-y: scroll;
}
What this does is forces browsers to always display a vertical scroll bar regardless of if the page needs it or not. This is useful for avoiding the "jump-in" effect that happens when content has to stretch the browser window.
I've been using this method for a while now, but only just realized it doesn't validate as CSS2 (it does however validate as CSS3).
I always keep my markup validated... but I have a bad habit of not validating my style sheets :o
So my question is, for superficial CSS rules such as these should I really be striving for W3 validation? I'm a pretty anal webmaster and I try to make sure all of my code is of good form, so when I see the W3 validator yell at me it really bothers me. Should I just be content with validating as CSS3?
html {
overflow-y: scroll;
}
What this does is forces browsers to always display a vertical scroll bar regardless of if the page needs it or not. This is useful for avoiding the "jump-in" effect that happens when content has to stretch the browser window.
I've been using this method for a while now, but only just realized it doesn't validate as CSS2 (it does however validate as CSS3).
I always keep my markup validated... but I have a bad habit of not validating my style sheets :o
So my question is, for superficial CSS rules such as these should I really be striving for W3 validation? I'm a pretty anal webmaster and I try to make sure all of my code is of good form, so when I see the W3 validator yell at me it really bothers me. Should I just be content with validating as CSS3?