Welcome to blogs.conchango.com Sign in | Join | Help

Welcome to blogs.conchango.com

rob.brown

Internet Explorer 8 - Protect your sites

It's old news by now, but in case you hadn't heard: IE8 beta has been released.

A new version of Internet Explorer normally causes us Interface Developers to recoil in horror in the sure knowledge that our painstaking efforts to make our sites pixel perfect will be made null and void practically overnight.

Thankfully the nice people at Microsoft have listen to our desperate pleas and stories of woe - this time there's an easy solution to protect the visual integrity of your websites.

The fix is simple, just add the following code to the top of each page on your website and you'll force Internet Explorer to use the IE7 rendering engine, thus keeping your site looking as perfect as the day it was born.

<meta http-equiv="X-UA-Compatible" content="IE=7" />

Leave this snippet in place until IE8 is in a stable release and it's penetration warrants you testing and revising the code for IE8.

Whilst you've got the hood open you may want to check you usage of Internet Explorer's conditional comments, specifically those you've targeted at IE7 and above. The code you've dropped in there probably won't be applicable to IE8 so it may be wise to change them to specifically target IE7 instead, i.e.:

<!--[if IE 7]>
 
Some code for Internet Explorer 7 code
 
<![endif]--> 
Published 20 March 2008 17:50 by rob.brown

Comments

No Comments
Anonymous comments are disabled
Powered by Community Server (Personal Edition), by Telligent Systems