> Chris Blake wrote:
>>
>>
>>
>> In the head? I have that reset.css and one style sheet attached. i
>> thought that it was OK to put the conditional comment in the normal
>> style sheet. I could have made a separate style sheet for IE only, but
>> it is just this one hack so seemed a bit unnecessary.


It looks like you had put the conditional comment in the CSS file, not
in the <head> of your HTML document. You want:

<head>
...
<link href="to/some/style/sheet.css" rel="stylesheet">
...
<!--[if IE]>...<![endif]-->
...
</head>

Putting a conditional comment in an external CSS file won't work
because CSS doesn't understand HTML-style comments.

Whether you end up going with CSS hacks or conditional comments is
your decision (though I prefer conditional comments because I know
what I'm getting that way, and there aren't as many potential
surprises).

Erik
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to