Force IE8 Into IE7 Compatiblity Mode
Is there a way to force IE8 into IE7 compatibility mode using .NET or Javascript?
Solution 1:
If you add this to your meta tags:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
IE8 will render the page like IE7.
Solution 2:
You can do it in the web.config
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=7"/>
</customHeaders>
</httpProtocol>
I have better results with this over the above solutions. Not sure why this wasn't given as a solution. :)
Solution 3:
I might have found it now. http://blog.lroot.com/articles/the-ie7-compatibility-tag-force-ie8-to-use-the-ie7-rendering-mode/
The site says adding this meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
or adding this to .htaccess
Header set X-UA-Compatible: IE=EmulateIE7
Solution 4:
There is an HTTP header you can set that will force IE8 to use IE7-compatibility mode.