disassociated.com Flickr photos

Hide your stylesheet from Internet Explorer 6

Posted by John Lampard on Friday, 26 September, 2008 to the technology subset

Could this be the answer to the prayers of web developers fed up with trying to accommodate IE 6’s CSS rendering quirks and bugs? A way to hide your stylesheet from Internet Explorer 6.

We have been able to hide styles from older browsers such as IE 4 and Netscape using the @import declaration (and IE 5 using the filter /**/), but this won’t work for IE6 and above. Digging around in the Textmate HTML bundle, I accidentally stumbled upon a Conditional Comment basically saying, “if you’re not IE, show this”… Ah ha!

Tags: , , , ,
Permalink | Contact | disassociated.com

Comments are welcome, please keep them relevant to the topic at hand. If you want to talk about something else, please contact me. Spam, SEO keyword "names", and crassness will not be tolerated.