Wednesday, December 17, 2008

An easy way to make your site look same in IE8 as IE7 (two easy steps)

As IE 8 final version is around the corner, most of the TL/PL/SL… many L’s main confusion, how we will enable our IE7 web version compatible with IE8 in a flick of a second?
Answer is very simple.

There are two options:

# For whole web site (IIS patch)
Add the HTTP header: X-UA-Compatible:IE=EmulateIE7

# For separate pages / master page / header (...)
Add following HTML tag in head section...
meta equiv="X-UA-Compatible" content="IE=EmulateIE7"

What this does?
Simple, IE 8 is loaded with a compatibility mode (kind of newbie), by having this Meta, IE8 will automatically load your site as its loading in IE7

Note: It will be advisable that meanwhile you use any of the above option, your CSS/Designer team is working on fixing the real issues, as this is a temporary patch to make PROD environment working for both browsers IE 7 and 8

No comments:

Post a Comment