Windows 7 Showcase Windows Phone News  
Comments
Item

Force your web site to be rendered in IE7 mode in IE8

Published 3/11/2008 in Windows Vista Usability Tips by Steve Sinchak with 9,660 views

With the release of IE8 and the number of users are growing rapidly it is important for web developers to be ready for the new way that IE8 renders web pages.  Microsoft decided IE8 will render web pages in a new web standards compliant mode by default. While this decision should simply making web sites that work in all web browsers, it is going to break many web sites that were designed to older rendering engines of Internet Explorer.

Rather than rewrite your entire web site to be standards compliant to work properly in IE8 Microsoft has given web developers a way to force IE8 to render your web page with the IE7 rendering mode.  Simply add a special code to your HTML code.

Insert the following right after the <head> tag in your HTML code.

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

 
Comments
adam
Thanks for the tip.

Would this cause problems if viewing in Firefox etc ? Or would they just ignore it?
443 days ago
No, Firefox and other browsers ignore it.
443 days ago
 
Post a Comment

Name  

URL