Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force IE8 Into IE7 Compatiblity Mode

Is there a way to force IE8 into IE7 compatibility mode using .NET or Javascript?

like image 533
Bryan Avatar asked Jun 18 '09 19:06

Bryan


People also ask

How do I force compatibility mode in IE11?

Open up Internet Explorer (IE 11) Press the Alt key on your keyboard, this will make a menu bar appear. Click on the Tools menu tab. Select the Compatibility View settings option.

How do I force Edge mode?

Click the Settings and More (ellipsis) button on the top-right corner. Select the Settings option. Click on Default browser. Under the “Internet Explorer compatibility” section, turn on the “Allow sites to be reloaded in Internet Explorer mode” toggle switch to enable IE mode on Edge.


2 Answers

If you add this to your meta tags:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 

IE8 will render the page like IE7.

like image 102
Serhat Ozgel Avatar answered Nov 16 '22 00:11

Serhat Ozgel


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. :)

like image 39
user428409 Avatar answered Nov 15 '22 22:11

user428409