Forum Moderators: open
I am trying to create a separate CSS file for IE5 & IE5.5
I have tried to use IE conditional comments with the mark up below but it isn't working. Is this mark up incorrect?
I have taken it from a well respected book so I baffled why it doesn't work.
MARKUP:
<!--[if lt IE 6]>
<STYLE TYPE="text/css">
P {color:blue}
@import ("ie5.css");
</style>
<![endif]-->
Please help if you can
Regards
Erdy
It appears you have the syntax correct, I'd have to say same as previous, it may be a CSS conflict.
Try sticking something very obvious but unique in your ie5.css, like:
BODY { border: 10px solid red; } That shouldn't be defined anywhere else but will certainly stand out if the CSS has been included.