views:

106

answers:

3

My website design is looking fine in Mozilla. But when I try to run in IE, the design is not looking fine. When the compatibility view from Tools option in menu of IE is unchecked, the design is looking fine. But by default the compatability view is checked.

Can by default can we uncheck the compatability view or is their any other problem?

+2  A: 

Even if you are viewing the website by yourself without using the Compatibility view in IE8, other users are still going to be viewing the website in IE6/7 and other browsers.

It would be best to fix the problems that are causing the design faults so that you are not working around the problem.

If you post your html markup/css that seems to be the issue, I am sure there are many people here who can help.

Tim B James
A: 

According to http://stackoverflow.com/questions/1014666/force-ie8-into-ie7-compatiblity-mode , you can add the following tag to make IE8 render as IE7:

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

But I think that is is better that you cleanup your HTML so it works correctly in both IE7 and IE8.

Andreas Paulsson
Actually, if it renders correctly in IE8 (non-hack mode) and Mozilla, then you should _not_ force it in IE8-as-IE7-hack mode.
MSalters
@MSalters: I agree. But I also wanted to answer the original question of how to do it. I also consider it to be wrong to do it but that was not the original question.
Andreas Paulsson
+1  A: 

Yes. The relevant document describing "Compatibility View" is the Internet Explorer 8 Readiness Toolkit

MSalters