Skip to content Skip to sidebar Skip to footer

Firefox Doesn't Show My Css

I have a strange problem, Firefox 3.6.3 doesn't show the CSS of the page I'm doing, but Internet Explorer 8 does. I have tried at home and at one of my friend's home, and it happen

Solution 1:

I'll bet a beer that the CSS file is not sending the content-type: text/css header. This causes style sheets to not work in Firefox. IE will ignore the content type.

If this is the reason, you should get a warning in the Firefox error console. You can use Firebug's net tab to verify the content-type sent.

As to why the content type isn't sent, this would be a server issue I think. It usually happens when the CSS file is a .php or .asp file that doesn't get assigned the correct content type automatically by the server when delivering.

Solution 2:

Navigate to your css file directly in Firefox (http://www.yoursite.com/style.css) and look at your Page Info (Tools >> Page Info).

If the css file is being submitted as text/html, it's an incorrect MIME type (should be text/css) and you will need to contact your server/host administrator to fix this for you if you don't have access to that.

Post a Comment for "Firefox Doesn't Show My Css"