tags:

views:

34

answers:

3

I have a regular css file plus two IE specific css files. In Firebug in Firefox I noticed the same div is getting properties from the three files.

Why is Firefox loading iestyle.css & ie6style.css?

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

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="ie6style.css" />
<![endif]-->

Addition

alt text

A: 

This should definitely be working. Are you sure there isn't an unclosed <!-- or <![CDATA[ hanging around in head?

attack
A: 

Are the conditional comments in the HEAD element or in the BODY element? I haven't tried it, but it's possible that FF only ignores conditional comments if they are in the HEAD element (where they should be).

Ash White
Firefox doesn't ignore conditionals
ovais.tariq
A: 

I think that isn't all the relevant code. Do you perhaps @include those files somewhere else?

Ms2ger