Previous Message
Next Message

Re: [css-d] multiple @imports

Sent by Mark Howells on 29 January 2002 08:08


> I'm trying to split up my CSS file (previously LINK'ed) to multiple 
> @imports
>
> This is what I have
>
> 	<style type="text/css">
> 		@import url("/css/global.css") all;
> 		@import url("/css/display.css") screen, tv, projection;
> 		@import url("/css/screen.css") screen;
> 		@import url("/css/projection.css") projection;
> 		@import url("/css/print.css") print;
> 		@import url("/css/basic.css") tty, handheld;
> 	</style>
>
> This does not seem to display properly in Opera-6 and IE-6
>

I think that you can only use one @import at a time, which must be the 
first declaration in a <style> block. If you want the above, I think 
you'll need to use ...

<style type="text/css">@import url("/css/global.css") all;</style>
<style type="text/css">@import url("/css/display.css") screen, tv, 
projection;</style>
<style type="text/css">@import url("/css/screen.css") screen;</style>

...etc.

Regards
Mark Howells
<http://www.mark.ac>
Previous Message
Next Message

Message thread: