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 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?

share|improve this question

2 Answers 2

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"
share|improve this answer

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.

share|improve this answer

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.