Blah Blah Blah CSS.
Lo and behold, conditional comments! Apparently these have been known about for quite a while. (Doh! They're not mentioned in Web Design in a Nutshell or Bulletproof Web Design.) But it seems so delightfully useful to me, that I must evangelize it here.
Here's the deal. Anything in-between these comments will only be executed for IE5.5. So, you can put your special IE hacks/patches in that external CSS file!
<!--[if IE 5.5]> <link rel="stylesheet" type="text/css" href="ie55.css" /> <![endif]-->
- Arve Bersvendsen's Overview and Examples
- Conditional Comments for Every Version of IE
- Microsoft Explains Conditional Comments
This is so awesome. Especially in light of the chatter that Microsoft may push-release IE7 over Windows Update. They have kindly posted a list of IE7's new CSS fixes.
Tags: code css html