homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Firefox ignoring style sheets online but not offline
Even though HTML and CSS both validate with W3C

5+ Year Member

Msg#: 3146512 posted 12:42 pm on Nov 5, 2006 (gmt 0)

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?



WebmasterWorld Senior Member 10+ Year Member

Msg#: 3146512 posted 1:07 pm on Nov 5, 2006 (gmt 0)

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.


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

Msg#: 3146512 posted 1:14 pm on Nov 5, 2006 (gmt 0)

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.


5+ Year Member

Msg#: 3146512 posted 12:02 pm on Nov 8, 2006 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved