Page is a not externally linkable
- Browsers
-- Opera Browser Usage and Support
---- Opera @import fails with type application/xhtml+xml


encyclo - 3:26 pm on Aug 26, 2004 (gmt 0)


You could try adding the comments like this:

<style type="text/css"><!--/*--><![CDATA[/*><!--*/ 
...
/*]]>*/--></style>

Which is fairly crazy, but you might have better luck (I haven't tested it in Opera). You could also use a link element as for your first stylesheet, and in that linked stylesheet you place the two @import statements to call the two advanced stylesheets.

If you use standard HTML comments only when serving XHTML as application/xhtml+xml, then the user agent is supposed to silently remove the contents - so your stylesheets won't load. Using an uncommented style block risks displaying the contents on-screen, but only for very old browsers (read Netscape 2).


Thread source:: http://www.webmasterworld.com/opera_browser/26.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com