Reputation: 8020
Is it possible to force the client's IE8 to not be in Compatibility mode? I have a site where it looks good in compatibility mode, but of course not as good as IE8 - not to mention newer browsers. As I think about it, I believe it would not be possible, since it's the system setting, but maybe someone was struggling with that one before.
Thank you
Upvotes: 2
Views: 896
Reputation: 652
Internet Explorer does have a compatibility mode, you can enable it be using x-ua-compatible
meta tag:
<head>
<title>Page Title</title>
<!-- Have to positioned before scripts and style tags -->
<meta http-equiv="x-ua-compatible" content="IE=8">
</head>
Upvotes: 1
Reputation: 4130
The whole msdn site gives very good description of compatibility modes.
I suggest reading the information provided there as this will give you deeper understanding the topic, but if you want short answer, different modes are defined like this:
<meta http-equiv="X-UA-Compatible" content="IE=4"> <!-- IE5 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=7.5" > <!-- IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=100" > <!-- IE9 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=a" > <!-- IE5 mode -->
<!-- This header mimics Internet Explorer 7 and uses
<!doctype> to determine how to display the webpage -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
Upvotes: 3