Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have an ordered list where the text is displaying on the next line from the number in IE 8 (but not other browsers). If I switch on Compatibility View it looks correct. While I think I'll be able to debug this particular issue and fix it, does anyone know of a fairly complete description of what the Compatibility View does, so that next time I can maybe speed up resolution?

TIA

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

Compatibility View renders the page as if it was Internet Explorer 7 (including Javascript). There are a few differences between IE8 with CV and pure IE7 but essentially it is the same.

You can also force IE8 to use CV with this meta tag:

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

If you are having problems, I'd suggest first checking you have a legitimate doctype in your HTML (the simplest one is <!DOCTYPE html> which forces standards mode). That will solve 90% of your problems, especially with IE6.

share|improve this answer
    
Thanks. I'm using Drupal with a decent theme, so at least doctypey errors are not a headache:) –  Andy Aug 13 '10 at 11:44
    
This link is also quite useful. –  Andy Aug 13 '10 at 11:53
add comment

Compatibility View in IE8 basically renders the page as it would appear in IE7. IE8 is far more standards compliant than IE7, but pages designed for IE7 may not appear correctly using IE8 standards mode, thus compatibility mode was introduced to make the page fall-back to the IE7 way of rendering.

If you really want the detail of what is going on then read Just The Facts: Recap of Compatibility View from the IE MSDN blog.

Incidentally, if you hit F12 whilst using IE8 you will see the developer toolbar. At the top there are two options to change the document mode and the browser mode which will let you explore how a page appears using the compatibility view options.

share|improve this answer
    
Thanks, useful link. Problem already solved, but as mentioned, was more interested in Compatibility View than fixing this particular issue. –  Andy Aug 13 '10 at 11:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.