William Buttlicker
William Buttlicker

Reputation: 6000

Hack for IE9 compatibility mode

I have a website. Its one section looks the way i want in IE9 and in IE8. But when IE9 compatibility mode is selected the look changes. How can i write a hack for that?

Upvotes: 1

Views: 2086

Answers (1)

Spudley
Spudley

Reputation: 168685

Short answer: don't use compatibility mode.

You can force IE not to use compat mode with the following line in the <head> section of your HTML code:

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

Hope that helps.

Upvotes: 4

Related Questions