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

  • Image Zoom

    This plug-in makes links pointing to images open in the "Image Zoom". Clicking a link will zoom out the clicked image to its target-image. Click anywh...

    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

  • Vibrate

    This plug-in makes any element you want "vibrate" every now and then. Can be used in conjunction with blink for maximum annoyance!

    Details

More Plug-ins

Recent Comments

  1. Andreas on "SleekPHP User Handling"

    Thank you for showing interest :) Were the docs en...

  2. ciptard on "SleekPHP User Handling"

    Ok, thank you

  3. Andreas on "SleekPHP User Handling"

    I might write a "getting started" article for Slee...

Page cached. Loaded in: 0.0368 second(s).
Last DB change: 2012-02-04 08:04:40
Last file change: 2011-10-03 07:42:35
Cache created: 2012-02-04 08:12:38