Standards Compliant Microsoft Internet Explorer

If you are anything like me, you have been starting to use the great features listed in the CSS3 directive. Taking advantage of such psuedo classes as :last-child, and nth-child().

Unfortunately Microsoft have not been too intelligent about adding the CSS directives into its browser, inlike the Mozilla based browsers and Safari. Before today I was frustrated with having to make work arounds for IE7 let alone IE6. In many cases I have ignored IE6 functionality, and ignored the users still using an unsafe, outdated browser.

But today, Dean Edwards has changed all that. I have discovered his unobtrusive javascript for compatibility of IE5 through IE8 with the new CSS3 directive.

Dean has built two scripts to alter the workings of IE, one specifically for IE7 which upgrades MSIE5-6 to be compatible with MSIE7, and highlights some key functionality in the latest CSS directives.

And probably my script of choice called IE8.js, which I will provide the download location of here, for my use and yours.


To get Internet Explorer behaving like a standards compliant browser simply include the script in the following fashion:

<! — [if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif] — >


To fix transparent PNG images, including background images, you need to name any such images with the *-trans.png suffix. Unfortunately, the transparent background image cannot be tiled (repeated) using background-repeat. Nor can it be positioned using background-position.

You can download the script from Google SVN, as far as I can tell, Dean Edwards script does not affect any other javascript libraries. If you find any descrepencies with that please let me know.

Dean Edwards you are freakin awsome!

Posted On: Friday, October 24th, 2008 @ 6:00 pm by Ian Tearle


There are no comments on this entry. You should add one below.

Leave a comment

Be kind

If you would like to discuss anything about this post, please be polite and add your comments below.



No HTML is allowed. All links, and new lines will be automagically converted to HTML for you.
Notice to spammers, all links will be sanitized with rel="nofollow".

Contact Me

Get In Touch

If you would like to discuss anything about your next project please drop me a line.



Projects start at £99.00 per month
We normally book 2–3 months in advance.


No matter how small your project is, or if the prices above scare you, please do get in touch, I shall always listen and will advise freely alternative ideas or solutions. If you are a charity, let's talk!

Find Me On