Now Using the Universal IE6 Stylesheet

Published Thursday 18th of June 2009

When looking through the stats for my various sites I noticed that some people are actually still viewing them in IE6. Today I decided to get rid of all my IE6 and IE7-problems forever.

Universal IE6 CSS

I recently read about Andy Clarke's Universal Internet Explorer 6 CSS and decided it was about time I implemented something like this in aFramework.

If you've been following Exscale you'll know that I've used an "IE-warning" for some time, but I very much prefer this approach where IE-users still get a rather pleasant experience (rather than a completely broken site and a warning).

I've still kept the notice though, encouraging IE-users to upgrade to a real browser.

I decided to implement it for both IE 6 and 7. The latter is of course better but it's still pretty bad and 8 is out so there's no reason not to use that if you absolutely must stick with M$.

I'm not just hiding styles but also decided to not give those versions of IE any JS. I build everything with progressive enhancement so the site will still be accessible.

If you're interested in the code used to serve my real style and scripts to everything but IE6 and 7 and the "universal ie6 css" to them here it is:

<!--[if !IE 6 & !IE 7]>-->
    <
link rel="stylesheet" type="text/css" media="screen,projection" href="real-stylesheet.css" />
<!--<![endif]-->
<!--[if 
lt IE 8]>
    <
link rel="stylesheet" type="text/css" media="screen,projection" href="http://universal-ie6-css.googlecode.com/files/ie6.0.3.css" />
<![endif]-->

How are your feelings on IE6?

Tags
No tags
Comments
3 comments

Bookmark this Article

  • del.icio.us
  • Digg
  • Furl
  • Google
  • Technorati
  • Ma.gnolia
  • Blinklist
  • Blogmarks
  • Rojo
  • Stumbleupon

Comments

  1. J.Smith

    Published Sunday 21st of June 2009

    Mycket imponerande min ung lärling!

  2. Robin

    Published Monday 29th of June 2009

    IE6 är mer eller mindre dött, så jag tycker personligen att man i princip aldrig behöver bry sig om den längre. :P

  3. Andreas

    Published Monday 29th of June 2009

    Håller med om att den är nära döden, men många kunder kräver fortfarande IE6-stöd så än är den tyvärr inte helt död... inte för mig iaf.

    Som du vet skulle jag aldrig orka hacka för IE6 på en egen sajt, faktum är att både 7an och 8an också får universal-CSSn.

Post a Comment

Random jQuery Plug-ins

  • Show Password

    This little plug inserts a "View password"-checkbox next to inputs of type password that allows the user to toggle the password's visibility. When the...

    Details

  • Checked checkbox-parent

    This tiny plug-in adds and removes a 'checked'-class to input[type=checkbox]'s parents. Very useful if you want to style the entire wrapping <label>-e...

    Details

  • Numeric DL

    This tiny plug-in numbers definitions in a definition-list if there are more than one definition for a term. Can be useful for FAQs, actual lists of d...

    Details

More Plug-ins

Recent Comments

  1. Coneelolo on "Phu Quoc, Sihanouk Ville, Koh Chang, Koh Wai & Koh Mak"

    For the help please use http://www.google.com

  2. AL on "Accessible, Stylish Modal Windows With Modern CSS"

    @Matt - What exactly isn't working? "Not working" ...

  3. roboteich on "Accessible, Stylish Modal Windows With Modern CSS"

    This is hardly accessible. Screen reader focus is...