CSS in Mozilla

by Brian Groce on February 23, 2005

For a while now I’ve been trying to figure out why certain pages which link to CSS refuse to load the CSS file in Firefox and Netscape.

After searching Google to no avail, I posted to a forum about the issue and Bob quickly found the root of the problem. My server was treating the mime type as html, not css like it should.

Since the problem wasn’t the link (which is setup as text/css) I had to create an .htaccess file and put the following line of code in:

AddType text/css .css

I uploaded it and that did the trick.

About The Author: Brian Groce

Brian Groce is a native Indianapolis resident and is the President & CEO of Watershed Studio, a web design & social media marketing firm located in the historic Stutz building in downtown Indianapolis. Brian is also a co-founder of Indy Media School and the man behind the curtain of all things Surge Bucket Media related. But first and foremost, Brian is the husband of his beautiful wife Amanda and the father of a house full of little ones.

Leave a Comment

Previous post:

Next post: