PDA

View Full Version : Using link href vs. pasting it between the head tags



mbannonb
10-11-2004, 12:34 AM
When I paste the whole CSS doc in between the head tags, all the text is the proper size.

When I call the css doc using link href, the text sizes are all whack. For some reason, this does not make it's way into the selector definitions:

TD,P,body{FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:10pt;}

So if I use

.big{font-weight:bold}

<p class=big> test

The text will be bold, but not 10pt.

Whats up with that?

mindlessLemming
10-11-2004, 01:01 AM
That's twisted :|
Can you host the two pages somewhere and supply us with a link to check it out? :)

Mhtml
10-11-2004, 01:18 AM
Yeah that's weird, what browser?

mbannonb
10-11-2004, 02:56 AM
Nuts, seems to only be doing it in FireFox!

http://www.aotf.net/test2.php

vs.

http://www.aotf.net/test.php

mindlessLemming
10-11-2004, 03:30 AM
It may have something to do with your bodyrow2 class (besides the lack of quotes around attribute ;))


font-weight:none;

should be


font-weight:normal;


That's the only error I can see in those two rules though :confused:

liorean
10-11-2004, 04:21 AM
I see an error in the .css file: You're including the style opening and closing tags in it. This file should be pure CSS, so it shouldn't contain any HTML whatsoever. In fact, I think what is broke is your first selector:
<style type="text/css">

TD,P,bodyThis is a broken selector (the '<style type="text/css"> TD' is not a valid selector), and thus firefox does the right thing and disregards the entire ruleset, as it should. Any browser not doing it that way would be incorrect.