How to force IE8 to render without compatibility mode

Some companies force Internet Explorer 8 to render all pages using the Internet Explorer 7. This is what Microsoft calls “compatibility mode”. Fortunately, you can override that setting and force IE to render the page using the latest version of its rendering engine (IE8+) with a simple meta tag.

Place this before all other tags in your <head>:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

In this example, we have added chrome=1 to force the use of Chrome Frame if it’s available on the client’s computer.

You can also set this using an HTTP header, although the meta tag will take precedence over the header.

Please note that the browser will still pass as its older version, making browser detection useless. However, at the very least, it will render the page using the most recent rendering engine available.

Fortunately, with older versions of Internet Explorer quickly losing market share, this should not be necessary for very long.

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see