ailon's DevBlog: Development related stuff in my life

No-CSS fallback for IE5.5 and earlier

5/30/2008 10:43:22 AM

I'm working on a project where I have to support modern versions of Firefox, Opera, Safari and IE6 and higher (hell I wish MS forced upgrade to IE7 through Windows Update) which is standard approach these days. Today I downloaded the excellent IETester and out of curiosity decided to look at how my project looks in IE5.5.

As expected it was a total mess. I have no plans nor requirements to support IE5.5 but I decided to do one simple thing: just skip the CSS file in IE5.5 and earlier so the site looks like it's 1995 but consistent and it's useable.

I've used conditional comments like this

    <![if gte IE 6]> 
    <link href="style.css" rel="stylesheet" type="text/css" />
    <![endif]> 
kick it on DotNetKicks.com
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags: ,

Copyright © 2003 - 2008 Alan Mendelevich
Powered by BlogEngine.NET 1.3.1.0