View Full Version : Dealing with IE8 modes

10-29-2009, 09:35 PM
I'm having an issue dealing with the different IE8 modes.

I've got the standard: "if IE 6" ...7 and 8 statements, but how do you account for the different modes in IE8?

In IE8 compatibility mode, IE7 standards:
my site looks fine.

In IE8, IE7 standards:
my site looks fine (I'm not sure if these two are the same)

In IE8, IE8 standards:
a few things get shifted around and it needs some fixing.

In IE8 Compatibility mode, IE8 standards:
it is also messed up, but differently messed up. Some of the same problems are there, but some problems are different, and there are new problems as well.

Needless to say, the site validates and looks fine in every other browser...well, looks fine in FF, Opera, Chrome, Safari, and a couple of others that I test on occasionally.

So, why are the two IE8 "Standards" modes different, and how do I account for that difference in my stylesheets?

This problem has existed for a while, I've just been ignoring it since most of my users are still on IE7 and because the default view for IE8 seems to work ok, but I think it's time to find and fix the problem.

Any thoughts?

10-29-2009, 10:42 PM
Here are the many IE8 modes (http://hsivonen.iki.fi/doctype/ie8-mode.png) in graphical form. Have fun with that.