IE5 is IE5 except when it isn’t

I mentioned “Hack-free CSS for IE”: the other day. There is one caveat that should be mentioned.

If you’re running “multiple versions of Internet Explorer”: 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" />

and this will return false:

<!--[if IE 5.0]>
<link rel="stylesheet" type="text/css" href="ie-5.0.css" />


Leave a comment


  1. IE5 is IE5 except when it isn’t

    Arve Bersvendsen on hack-free CSS for Internet Explorer: IE5 is IE5 except when it isn’t……

  2. That information is listed on the IE downloads page for my site. Conditional comments do not work with the standalones (apparently, as you’ve noted). =)