View Full Version : FF not displaying my css

Dec 6th, 2006, 12:53 PM
Hi all,
For this website, http://www.mgoog.nl IE7 is displaying everything as it is supposed to be. In Mozilla Firefox, the css is not loaded, I have no idea why, could anyone help? The css is located at http://www.mgoog.nl/main.css

Dec 6th, 2006, 01:03 PM
Since your page doesn't contain any, let alone valid doctype declaration, FF likely interprets it as "tag soup" HTML, which makes this:

<link rel="stylesheet" media="all" type="text/css"
href="main.css" /> invalid (XHTML notation).

I'd recommend chosing which version of HTML you want this document to be written in, and than reflect this choice by supplying the correct doctype and let the markup adhere to it. The doctype declaration is used by a number of browsers to chose which rendering is applied; I guess FF completely ignores the above XTHML link element.

Dec 6th, 2006, 01:05 PM
I also tried including the entire css in the index.php . This didn't work either.
For the doctypes, which one should I use?

Also, if you go to, for example, 'problemen' and click 'Printversie', which uses a different CSS file, printtext.css, FF DOES display this.

Dec 6th, 2006, 01:20 PM
SOLVED, it didn't recognize a line in CSS

Dec 6th, 2006, 02:11 PM
I hope you'll still consider adding a doctype to all your web pages. Without it, you have tag soup as Ronald suggested, which will cause browsers to go into quirks mode. If you don't know what I mean by quirks mode, just Google for an explanation. In the meantime, here (http://www.htmlhelp.com/tools/validator/doctype.html) is a page which explains what the different doctypes are and helps you choose which one you might want to use.