Sébastien FICHOT a écrit :
> Hi
> 
> The url http://www.w3.org/TR/CSS2/cascade.html#at-import says that
> "In the absence of any media types, the import is unconditional. Specifying 
> 'all' for the medium has the same effect. "
> so I've tried to import the rule using the media type "screen" as I need to 
> import a rule for the media print ...
> -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
> -   -
> @import url(./Ressources/StyleSheet/Layout.css) screen;
> -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
> -   -
> ...but IE doesn't manage it, Firefox works well.
> 
> How can I do a conditionnal import rule for screen and print which will 
> works for twices ?
> 
> I could do ...
> -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
> -   -   -   -   -   -   -   -
> @media screen { /* for IE 6, 7 */
>          @import url("./Ressources/StyleSheet/Layout.css");
> }
> @import url("./Ressources/StyleSheet/Layout.css") screen; /* For Gecko */
> -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   
> -   -   -   -   -   -   -   -
> ...but it's not cool, isn't it ?
> 
> Sebastien - FRANCE

Have you tried

<style media=screen>@import url...</style> ?


-- 
Éric Vesque
imprimerie Print, Limoges
http://www.affaire-imprimerie.com


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to