Welcome to WebmasterWorld Guest from 54.145.246.183

Forum Moderators: not2easy

Firefox ignoring style sheets online but not offline

Even though HTML and CSS both validate with W3C

   
12:42 pm on Nov 5, 2006 (gmt 0)

5+ Year Member



I have sites that validate for HTML and CSS and display correctly offline in both IE and Firefox but which never display any styling online in Firefox.

There must be a simple reason but I have been unable to find anything about this particular problem after numerous Google searches.

I am aware that some people have this problem because of comments at the top of a CSS document, but I have none of those. And I also know it's not a caching problem.

Could it be a character encoding problem? A link tag problem? Something to do with the web server?

1:07 pm on Nov 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi awdaus, welcome to the forums!

A bit rusty here, but I think your server doesn't send your CSS with the correct mime-type. It should be text/css.

1:14 pm on Nov 5, 2006 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



How are you linking to your external stylesheet? Can you paste the code?

Just a couple of ideas... Have you got the 'case' correct? eg. "mystyles.css" and "myStyles.css" could be considered the same when working offline under Windows, but not online under Linux. Are you using '/' (forward slashes) in your directory path, as opposed to '\' (Windows back slashes)? '\' will work under IE, but not FF.

12:02 pm on Nov 8, 2006 (gmt 0)

5+ Year Member



Right on, Span. I sent your suggestion about the MIME-type recognition to my server administrator and he apologised for neglecting that aspect of his configuration. My sites are now working fine.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month