bushed
bushed

Reputation: 1060

How to make IE8 only to work in compatibility mode?

IE8 has it's own bugs which are not present in IE6, IE7, IE8 compat. mode and IE9 beta... i.e.: http://forum.jquery.com/topic/hidden-visible-broken-in-ie8

Is there any way to force compatibility mode for IE8 only?

  1. When i try to put in the header something like:

  <meta http-equiv="X-UA-Compatible" content="IE=IE7; IE9" />

IE8 doc type falls back to IE8 mode

  1. When i try:

    <!--[if IE 8]>
        <meta http-equiv="X-UA-Compatible" content="IE=7"/>
    <![endif]-->
    

IE8 renders the meta-tag but completely ignores it

Am i out of options, except for turning IE7 document mode for every IE>7 ?

Upvotes: 1

Views: 1600

Answers (3)

Swapnil_Shintre_Pune
Swapnil_Shintre_Pune

Reputation: 11

this sets your your old browser i.e IE 6,5 or 8 content compatible automatic,even if you working on latest browser i.e 10 or 11 Eg: this is for IE7.......

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

Upvotes: 0

worksykes
worksykes

Reputation: 56

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

This makes IE8 go into IE7 Compatibility mode, but leaves IE9 alone in IE9 mode.

Upvotes: 3

user1356185
user1356185

Reputation: 86

Try the following without semi-colon

<!--[if IE 8]>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
<![endif]-->

This works for me and the test http://forum.jquery.com/topic/hidden-visible-broken-in-ie8 also works

Let me know if this works for you as well

Upvotes: 0

Related Questions