CSS won't load in Firefox

Discussion in 'Web Design and Development' started by wheezy, Oct 1, 2007.

  1. wheezy macrumors 65816


    Apr 7, 2005
    Alpine, UT
    I've run into this problems a few times, but I have good valid CSS genereated by CSSEdit, and my pages load fine in Safari and IE7, but in Firefox the CSS is not loaded. If I copy the entire CSS into the HEAD of the file, then the page loads right, but I'd obviously like to use a referenced CSS file.

    Here is how I have it referenced in the code:

    <link rel="stylesheet" media="screen" type="text/css" href="site/avintifront.css" />
    <link rel="stylesheet" media="screen" type="text/css" href="site/newt.css" />

    Unfortunately that's all I can show you, the site we have it hosted on right now for Dev purposes is password protected so I can't have you take a look at it.

    Bottom line is: Firefox won't load the external stylesheet for me.
  2. rajfantastic macrumors member


    Jun 9, 2007
  3. filman408 macrumors regular

    Sep 4, 2006
    San Jose, CA
    you should verify that the css docs are linked via "document" or "site root".
    or try putting the full url (http...) to link to the css file.
  4. angelwatt Moderator emeritus


    Aug 16, 2005
    I would double check that the HTML validates. Different browsers treat problems differently like ignoring certain issues. What I'm thinking is that a tag may be closed incorrectly somewhere (or opened incorrectly). If your code is XHTML you might want to run it through an XML validator in addition to HTML validator just to make sure.

Share This Page