[thelist] @media and @import

fstorr fffrancis at fstorr.demon.co.uk
Mon Nov 7 01:58:32 CST 2005


On 7 Nov, 2005, at 07:46, VOLKAN ÖZÇELİK wrote:
>
> How about trying things the other way around?
> I meain including only two imports in head:
>
> @import url("print.css");
> @import url("master.css")
>
> and then in print.css usin media declarations
>
> Print.css
> -------------
> @media print{
>     ... print related rules here...
> }
> ---------------


That makes perfect sense, but doesn't work, and I've no idea why. In  
styles.css I've got:

@import url("print.css");
h1{
color:red;
}

And in print.css I've got:

@media print{
h1{
color:blue;
}
}

And the red always wins out.  Very strange.

Regards

F




More information about the thelist mailing list