Tuesday, 6 October 2009

Force IE8 to behave more like IE7

Internet explorer 8 rewrote some behaviours in its new browser, meaning your page which you spent hours getting to behave correctly in the different versions of Firefox, the new player Chrome, Safari for the Mac users, Intenet Explorer 7 for the windows home users, Internet explorer 6 for the corporate machines who still haven't upgraded and the home users who for whatever reason run old windows versions, now breaks in new and unexpected ways.
Thankfully IE8 recognises a new HTTP HEader X-UA-Compatible, which tells it which browsers the web page has been tested against. You can specify the header as a meta tag within the page itself:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
So you can opt in to standards behavior on your own schedule and as it makes sense to you, instead of being forced into a responsive mode when a new version of IE has different behavior on your current pages.
More info here at alistapart

0 comments:

About Me

Oxford, United Kingdom
www.dizzy.cx