Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Firefox won't load css with doctype - urgent

2:42 pm on Nov 2, 2006 (gmt 0)

New User

10+ Year Member

joined:Nov 2, 2006
votes: 0

Firefox won't load my css file consistantly.

If I have a doctype of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

When I remove this it works fine. The page normally loads in standards mode. I have the server set to send the page as text/css.

The problem is that it is inconsistant and hard to test. If I play with the page or css files enough it starts to display properly and then I can't get it to go back to the error. (probably sets the browser to quirks mode)

On the front page I removed the doctype to get it to work, but the sub-pages have the doctype and don't load the css (blue background)

I've been trying to fix this for a while and really need a solution.

[edited by: encyclo at 6:44 pm (utc) on Nov. 2, 2006]
[edit reason] no links to personal sites please, see forum charter [/edit]

9:03 pm on Nov 2, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 13, 2003
posts: 590
votes: 0

Is this an html page or a css file? If it's an html page, then you shouldn't be sending the page as text/css, you should be sending it as text/html. If it's a css page, you shouldn't have a doctype in it.