«« Telling All for a Job Found an IE Bug? »»
blog header image
Mozilla and <!DOCTYPE>

Mozilla (1.3 on Win32 and Mac OS X) doesn't like this DOCTYPE at the beginning of the MoveableType templates:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Mozilla renders the site without style, which is imported via:

<link rel="stylesheet" href="http://www.ryanlowe.ca/blog/styles-site.css" type="text/css" />

When I remove the DOCTYPE declaration, the styles work. Every other browser is fine. Anyone know what's going on? I'd like to be able to validate my site's XHTML and I can't do it without the DOCTYPE declaration.

Posted at April 22, 2003 at 11:02 AM EST
Last updated April 22, 2003 at 11:02 AM EST
Comments

Your server is sending CSS with a Content-Type of "test/css" instead of "text/css" (teSt Vs teXt - its subtle and easy to miss).

Mozilla doesn't understand the style sheet language "test/css" and (when in standards mode) does not try to second guess the description of the file that the server sends.

Fix your mime types (or get the admin to do it if that isn't you) and things should start working in standards mode.

» Posted by: David Dorward at April 26, 2003 08:54 AM

Thanks David!

» Posted by: ryan at April 26, 2003 12:13 PM

Hi Ryan,

Hi have the same problem here with a basic template from movable type (the site is www.mariospina.com/braindump). When I include the Doctype, the css is not applied in Firebird (ver 0.7) or in mozilla. If I remove it, everything is fine... how did you fix it?

» Posted by: Mario Spina at October 26, 2003 01:06 AM

I've been a long time user of both IE and Netscape. Now I'm using Mozilla and Firebird. Although Neither Mozilla or Firebird have the stability and easy of use that the average computer user wants.

» Posted by: Frieda Zonnenfeld at October 26, 2003 02:14 PM
Google
 
Search scope: Web ryanlowe.ca