IE9 Compat View Issue

Published on October 10, 2011 | Filed Under HTML

The Issue

If you’re working on a web page (or site,) you may notice that IE9 keeps pushing your view settings back to “IE9 Compat View”, IE8 or IE7.


The Solution

Just throw the following tag into the HEAD element of your site:

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

It usually has to do with the DocType (DTD) at the top of your page, which specifies an HTML4 DTD. However, that’s not always true.

The new HTML5 DTD looks like this:

<!doctype html>

The only issue that I’ve noticed with putting this new DTD up there is that all HTML4 browsers will potentially show some garbage designs when they arrive.

Leave a Reply

*