Firefox not showing stylesheet
Friday, December 7th, 2007Was uploading a site and discovered that the CSS didn’t work in Firefox, but worked in Safari and IE. It acted like there was no stylesheet, but the Web Developer Toolbar could show it. Clicking “edit CSS” on the Web Developer Toolbar showed a brief blink of the stylesheet being attached.
Turns out it’s a server misconfiguration, discussed in this article.
Apache reads a “mime.types” file. Make sure it includes the line:
text/css css
You can also use Apache configuration directives to set the Content-type. If the worst comes to the worst you may be able to use a .htaccess file (which applies to the directory it is in and all subdirectories) to set the configuration (the default Apache configuration disallows this, but many hosts turn it on to allow users some degree of configuration).
AddType text/css .css