PDA

View Full Version : CSS won't load in Firefox




wheezy
Oct 1, 2007, 04:36 PM
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.



rajfantastic
Oct 1, 2007, 06:14 PM
get firebug (https://addons.mozilla.org/en-US/firefox/addon/1843) and see if you get any css/dom warnings. also web developer toolbar (http://addons.mozilla.org/firefox/60) is a good thing to have.

filman408
Oct 1, 2007, 07:11 PM
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.

angelwatt
Oct 1, 2007, 10:17 PM
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.