Monday, 27 April 2009

IE8 Compatibility

As most know IE8 is now available to download. Yet another browser to test in. Think I'm up to 3 IE's, Firefox, and then Safari and Opera on the Mac. Life would be so much simpler if all browsers rendered the same but that will never happen.

Just a little pointer to help you guys out. If you have it looking right in IE7 and want to force IE8 to render it properly you can simply add:

(<)meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /(>)(<)!-- IE7 Mode --(>)
without the rounded brackets obviously. The code tag doesn't seem to work with blogger posts for some reason.

just below the title of the page. This isn't a proper fix. Ideally you should be making it work in IE8 with a separate style sheet if needed but if you have a load of sites you want to temporarily make work while you look into any issues then this might be useful.