Greg's Blog

helping me remember what I figure out

IE Comments

| Comments

I have been seeing this type of browser detection over the last month or so and now been reminded of it in a few blogs, so I thought I’d also link to this MSDN article on Internet Explorer Conditional Comments. These comments only work for IE 5.x and above. Maybe these could be combined into something as useful as this:

<!–[if IE lte 6.0]>
<link rel=”stylesheet” href=”ie7-html.css” type=”text/css”/>
<![endif]–>

Which would include the “IE7” stylesheet created by Dean Edwards if the browser was IE 6 or less?? This would effectively patch the versions 6.0 and 5.5 of INternet Explorer to so support CSS better.