I had nice valid CSS, then I bumped into IE 5.5. So I added a few hacks to make it look right in IE 5.5 and it broke the validation. I am not amused.
Seems the validator doesn’t like the ‘/’ hacks.
* html #sidebar ul li { /* feed IE only */
/text-indent: -15px; /* for IE 5.0 and IE 5.5 */
text-indent: /**/0; /* reset all except IE 5.5 */
t/ext-indent: 0;
}How do I work around this? Or do I just have to live with invalid CSS if I want it to look right?
Arve Bersvendsen has posted a technique that may help
Serendipity. 🙂
Hi Alex,
I have always called the css file directly like this:
http://jigsaw.w3.org[...]s/screen.css
I started using this when I was having parse problems using said box hacks.
Karl
Alex,
It could be related to this article by zeldman http://www.zeldman.c[...]/0204b.shtml
The W3C’s CSS validation service has changed the way it interprets CSS authoring practices. Many sites that were designed valid no longer validate. The change in behavior affects sites that use the box model hack to compensate for the incorrect CSS implementation in versions of Internet Explorer for Windows prior to IE6.
Karl, I tried that but got the same errors.
Sam, he has actually updated that post:
I may still try the IE comment hacks, I like the idea of keeping the stylesheet clean and overriding in a separate file.