PDA

View Full Version : CSS Validation Help


Mudvayne
05-13-2007, 06:22 PM
.overflow {
width:770px;
padding-bottom:20px;
overflow:auto;
overflow-x:auto;
overflow-y:hidden;
}
I just want to use overflow horizontally. Above code works like charm but since overflow-x:auto; & overflow-y:hidden; isn't a valid sintax so my site's CSS isn't validated. So I removed overflow-x:auto; & overflow-y:hidden; & then the overflow works fine on Opera & Firefox. But on IE the overflow works vertically as well as horizontally. Is there any CSS code (validated) that I can use only horizontally overflow?

CSS Validator (http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.golpo.net)

cyberphr
05-13-2007, 08:38 PM
I'm afraid there isn't. :(

Mudvayne
05-14-2007, 04:46 AM
Ah ok :(. I removed these two lines & its working fine on FF & Opera. Lets IE do his job & we do ours :D. Now a days who use IE? :p

CyberAlien
05-14-2007, 06:53 AM
So you removed css that makes style look correctly in one browser only because it wasn't validating? Sigh. Doesn't matter if it validates or not, as long as code is correct. Other browsers don't support that css and they will ignore it, so it won't cause any problems at all.

Usability should be your main concern, not validation. Valid css is nice to have, but not if it causes problems to some users.