Reputation: 6000
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
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