Code Snippet

Home » Code Snippets » HTML » Meta Tag For Forcing IE 8 to Behave Like IE 7

Meta Tag For Forcing IE 8 to Behave Like IE 7

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

Source: Microsoft

Some reports that IE 8 in IE 7 mode doesn't quite behave like either one.

Subscribe to The Thread

  1. It’s bad practice to use this as a ‘set it and forget it’ solution. The plain fact is that they’re *not* the same, and you need to test in both if you’re using this.

  2. Here is a microsoft Resource that details the differences between IE 8 Compatibility mode and IE7 :
    Site Compatibility and IE8

  3. I don’t get why anyone would want to change IE8′s pretty decent CSS rendering to a crappy IE7 one..?

  4. Pradeep

    Yea i agree y do u want to go back to the older versions of IE… ??

  5. Because otherwise your code has to support “another” browser version that has different behavior.

    Because people write hacks to work around issues in the way older browsers work. Then IE 8 comes along and their hack doesn’t work anymore (because IE 8 does things better now)

    It’s a nice easy method of ensuring that your code works on IE 8 also without modification. It’s easier to add this meta than creating a lot of changes and testing for another browser. Granted that it’s not ideal.

    This was a clever move from MS in my opinion… It will make the transition far easier for developers.

  6. Peter Dubrovski

    Use for the newest IE

  7. Peter Dubrovski

    your site has eaten my comment …

    <meta http-equiv=”X-UA-Compatible” content=”IE=edge” />

  8. baber

    I want to Forcing IE 7 to Behave Like IE 8. is there any way to do it kindly share.

Speak, my friend

At this moment, you have an awesome opportunity* to be the person your mother always wanted you to be: kind, helpful, and smart. Do that, and we'll give you a big ol' gold star for the day (literally).

Posting tips:
  • You can use basic HTML
  • When posting code, please turn all
    < characters into &lt;
  • If the code is multi-line, use
    <pre><code></code></pre>
Thank you,
~ The Management ~