Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    FF not displaying my css

    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

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Doctype

    Since your page doesn't contain any, let alone valid doctype declaration, FF likely interprets it as "tag soup" HTML, which makes this:
    Code:
    <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.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by Dviper; 12-06-2006 at 12:11 PM.

  • #4
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    SOLVED, it didn't recognize a line in CSS

  • #5
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,093
    Thanks
    2
    Thanked 23 Times in 23 Posts
    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 is a page which explains what the different doctypes are and helps you choose which one you might want to use.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •