Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internet Explorer 8 EmulateIE7 Mode not working

I've set up IIS6 to send the following headers

Custom Header Name: X-UA-Compatible
Custom Header Value: IE=EmulateIE7

that supposed to force IE 8 into IE 7 Compatibility mode. You can read more about it on MSDN .

I have noticed by looking in the Developer toolbar that if I have a DTD defined the document mode correctly gets set to IE 7, but the browser mode is IE 8. If the page doesn't have a DTD the document mode gets set to Quirks and Browser Mode once again IE 8.

Am I doing something wrong. How do I force IE 8 to set IE 7 Browser mode.

Thanks

like image 934
Ryu Avatar asked Dec 22 '22 10:12

Ryu


1 Answers

I've used this meta tag to force the IE7 mode:

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

Important: you must put this before any other tags in <head>!

(actually you might be able to put a <title> before this, but not putting anything is easier to remember than the specific cases)

like image 141
Jani Hartikainen Avatar answered Dec 26 '22 06:12

Jani Hartikainen