I mentioned “Hack-free CSS for IE”:http://virtuelvis.com/archives/2004/02/css-ie-only the other day. There is one caveat that should be mentioned.
If you’re running “multiple versions of Internet Explorer”:http://www.skyzyx.com/archives/000094.php on one machine, all of these versions will act as if they’re the last version installed.
This means that if you have IE6 installed and run IE5 to check, this conditional comment will return true:
==
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie-6.0.css" />
<![endif]-->
==
and this will return false:
==
<!--[if IE 5.0]>
<link rel="stylesheet" type="text/css" href="ie-5.0.css" />
<![endif]-->
==
Anders Jacobsen's sideblog
/ 2004-02-09IE5 is IE5 except when it isn’t
Arve Bersvendsen on hack-free CSS for Internet Explorer: IE5 is IE5 except when it isn’t……
Ryan Parman
/ 2004-02-09That information is listed on the IE downloads page for my site. Conditional comments do not work with the standalones (apparently, as you’ve noted). =)