Controling Compatibility View in IE

After hours of frustration trying to make some CSS look right for a selection of people using IE8 I gave up.

There has to be a better solution.

Internet Explorer 8 and Internet Explorer 9 include a Compatibility View feature that displays websites that were created for older browsers as they were designed to appear with Internet Explorer 7. You can enable Compatibility View in Internet Explorer, most users don’t even know they are in Compatibility View  – which is where the problems arise!You can enable Compatibility View in  three different ways, I found the latter to be most helpful.

  • In Internet Explorer 8 or 9
  • On ISS. See KB956197
  • In the code with a Meta tag.

Seen as you don’t know which users are in  Compatibility View, thats out the window. I don’t use IIS, thats out the window, so the latter Meta tag is the last and most simple option.

Just add the following code to your <head> section

[codesyntax lang=”html4strict”]
<meta http-equiv=”X-UA-Compatible” content=”IE=8″ />


Author: Kieran Barnes

Kieran is a PHP developer with 15 years commercial experience. Specialist in WordPress, CakePHP, CubeCart and all things PHP.

Leave a Reply

Your email address will not be published. Required fields are marked *