0

I coded a website, and obviously when uploaded it to test it, its messing up in IE.

Im trying to insert an IE only stylesheet, but its not working, the code I have is:

<!--[if IE]>        <link rel="stylesheet" type="text/css" href="ieonly.css" />
<![endif]-->

Whats going wrong?

Any one can help me, that would be amazing?

On IE everything is getting mis aligned.

RSM
  • 14,540
  • 34
  • 97
  • 144
  • 1
    Is the IE stylesheet not being applied at all? Or are your IE-only corrections not working how you want? If the second is true, we need to see code. – Nate B Nov 17 '11 at 15:22
  • 1
    Is the path to your file correct, it's not in any directory? This stylesheet should be loaded AFTER your general stylesheet. – Niels Nov 17 '11 at 15:23
  • Inspect the elements which should have their styles changed via the `ieonly.css` file. F12 will bring it up depending on the version of IE you are using. – Tim B James Nov 17 '11 at 15:28
  • Niels, you were right, it was before my original stylesheet. please make this an answer so i can accept. thanks everyone – RSM Nov 18 '11 at 09:10

1 Answers1

3

Well your syntax seems ok.Try using the developer toolbar to check if the path to your CSS file is right

<!--[if IE]>
        <link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]-->
Neil
  • 2,802
  • 8
  • 34
  • 49