Thursday, 28 May 2009

Internet Explorer 8: Compatibility View

There is a new feature in Internet Explorer 8, called Compatibility View
Microsoft redesigned layout rendering engine of IE 8, some times this causes older web sites not to be correctly displayed in IE 8, which were looking good in IE 7 and earlier.
So resolve this issue, IE 8 has a feature to change the layout rendering, called "Compatibility View", by selecting this option, you tell the browser to render as if it is IE 7.

If your old web sites have some trouble displaying in IE 8, and you do not want to solve those problems, an easy way is just to say the IE to render it in IE 7 mode.

You just need to add this line of code in your head section of your HTML pages:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

That's all!