Internet Explorer 8's compatibility flags
Posted May 30th, 2008 in HTML and CSS
Nick MacKechnie at Microsoft blogged about how Internet Explorer 8 is coming and that has a special flag which developers can but into a web page to make it render the page in IE7 mode. There is more info at the MSDN website and their defining document compatibility page.
The tag you insert into the HTML head section to make it render in IE7 mode is as follows:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
Please note that the MSDN document compatibility page appears to contain some errors in the examples. The following examples don't appear to make sense based on the other content in the page, because why would IE=7.5 mean IE7 mode when the other examples in the page tell us to set it to IE=7.
<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 -->
I suspect someone needs to proof the page properly, and it will pay to experiment yourself with the various settings should you wish to use different compatibility modes.
Related posts:
- Remove cellpadding and cellspacing from an HTML table with CSS (Wednesday, November 5th 2008)
- Style an HTML form input with CSS and jQuery (Saturday, July 26th 2008)
- Targeting specific versions of Internet Explorer and other browsers with conditional comments (Wednesday, June 18th 2008)
- Using Internet Explorer Conditional Tags for Style Sheet Selection (Wednesday, May 21st 2008)
- Centering a page with HTML and CSS (Tuesday, May 6th 2008)
Recent posts:
- List installed packages with YUM (Tuesday, December 2nd 2008)
- Monthly Roundup - November 2008 (Monday, December 1st 2008)
- Weekly Roundup - December 1st 2008 (Monday, December 1st 2008)
- Installing subversion on CentOS (Sunday, November 30th 2008)
- GoDaddy 99 cent .com domain coupon code (Saturday, November 29th 2008)
- Find the index of a string within a string with Javascript (Friday, November 28th 2008)
Subscribe to RSS Feed / Email / Bookmark / Share
Use the buttons below to subscribe to my RSS feed to be notified next time something is posted, share this post with others, or subscribe by email and have my posts sent in a daily email.
