1

I am developing the following website and just discovered that the styling of the navigation does not work well in IE9 but is great in IE8 and other browsers - how do sort this out?

2 Answers 2

1

You can use document compatibility mode.

<html>
<head>
  <!-- Mimic Internet Explorer 8 -->
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
  <title>My webpage</title>
</head>
<body>
  <p>Content goes here.</p>
</body>
</html> 

You can also set this as an HTTP header. If you are using Apache you can place this in an .htaccess file in your route directory to accomplish the same thing:

Header set X-UA-Compatible "IE=8"
1

or simply you can use CSS - Conditional comments for IE

http://www.css-tricks.com/how-to-create-an-ie-only-stylesheet

http://www.javascriptkit.com/dhtmltutors/csshacks.shtml

which will be quiet simple if you are a newbie hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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