Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: not2easy
I immediately noticed that my pages that use CSS are totally screwed up with IE8. These pages look fine with Mozilla, IE6 and IE7.
I found a reference on the web to include the following meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
This made no difference whatsoever, is there any tag that would allow IE8 to go back to IE7 compatibility mode?
This looks relevant, though I only skimmed it: [blogs.msdn.com...] . It appears there's more than one tag you can use, depending on what you want to happen.
As I recall, IE7 renders in standards mode (which greatly affects CSS rendering) if there is any doctype declared. Some CSS features will only work (at all) in IE7 if a doctype is declared. Absence of a doctype invokes quirks mode, in which case certain CSS, notably including CSS flyout/dropdown menus, won't function.
Artsyrat, there is an option in IE8 to "display all sites in Compatibility View", at Tools > Compatibility View Settings.
[edited by: SteveWh at 6:23 pm (utc) on May 18, 2009]
Thank you for that link. Apparently the meta tag should have been inserted immediately after the <head> tag and I had it inserted within the <head></head> tags.
Nevertheless, I simply added the value to the entire website as an HTTP Header and it solved the IE8 CSS rendering problem I had.
I've just gone down the conditional route and on my latest site I have 3 conditionally commented style sheets for IE8, IE7 and IE6 and below. It is easy to do and in my mind better because you then start to understand the specific problems with IE8 rather than ignore them by emulating IE7.
I can't wait for IE9, IE10 etc...
Artsyrat - There is a programme called "IE Tester" which installs a browser that emulates IE's version 5.5 to 8. It also leaves your current version of IE alone. I use it and apart from an annoying habit of crashing every now and then for no apparent reason it is a useful tool. No links allowed so you'll have to google for it.
IE8: in all honesty it's not that bad on being standards complaint. With my way of not adding anything not needed by standards compliant browsers and saving all the stuff legacy IE versions require into version specific conditional comments, I've yet to run into the first IE8 issue.
Developing a lost of known problems in IE8 and tryign to get Microsoft to fix them for a change (no bugs in IE6 and I7 that aren't security or patents they didn't want to pay for are fixed at all)
Pushing IE8 into IE7 mode is at best a short term solution till you can fix it properly. Try to move the hacks and workarounds for legacy IE versions into a conditional comment and see if just offering IE8 the standards code you also offer to Firefox, Safari and Opera etc doesn't solve the problem.
I for one would really welcome a small sample that triggers problems in IE8 (and the solutions to it), I'm sure it'll help quite a few of our members over time.