Emulating site that browsed through IE8 to always run as IE7

Have you ever have a complicated designer..who don’t have idea to make his design compatible with IE8..? He already refix the CSS do the master pages recode but still don’t have idea to make it works in IE8 machine. Well the root problem might be the CSS :) do the CSS clean check here 

If you already show the validation idea and the designer still experience the issue … that the developer need to runs his finger by adding this statement in the master pages.

Here is a sample HTML Code block that would tell IE8 to render pages the same way that IE7 does:

 

<html>
<head>
<!-- Mimic Internet Explorer 7 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>My Web Page</title>
</head>
<body>
<p>Content goes here.</p>
</body>
</html>

You can also instruct your web server to handle this, from the web.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=EmulateIE7" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

Here are some of the other meta tags:

<meta http-equiv="X-UA-Compatible" content="IE=4">   <!-- IE5 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=7.5"> <!-- IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=100"> <!-- IE8 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=a">   <!-- IE5 mode -->

Share this post: | | | |

Comments

No Comments