Loading Stylesheets in Firefox



I ran into an odd issue with loading an external stylesheet with Firefox recently. Using a regular import style command( @import URI;), the stylesheet failed to load, but only in Firefox-Internet Explorer had no problems.

This turned out to be because Firefox requires the stylesheet to be served with a correct mime-type from the web server(text/css). Although I haven't tested this out, I think this might not be the case if you have your doctype set to quirks mode-but in standard mode Firefox needs text/css.


1 comment :

Glen said...

Loved reading this thankss