...

View Full Version : FF not displaying my css



Dviper
12-06-2006, 11:53 AM
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

ronaldb66
12-06-2006, 12: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.

Dviper
12-06-2006, 12: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.

Dviper
12-06-2006, 12:20 PM
SOLVED, it didn't recognize a line in CSS

vinyl-junkie
12-06-2006, 01: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum