color doesn't work on class defintion

liunx

Guest
why does the font size work, but not the color?

(in external .css file, pulled in with link)

.blue14 { font-color: red; font-size: 20pt }

(edit: fixed it, the BOOK was wrong...it's just "color" not "font color"...)

(couldn't delete this thread, tho? humpf!)You do not use the word font with the color attribute

.blue14{
color:red;
font-size:20pt
}

Strange, I did not get your edited post until I submitted mine....hmmOriginally posted by Mr J
Strange, I did not get your edited post until I submitted mine....hmm
yeah, weird...slow to update maybe?

(thx for reply...btw)

btw, don't get "html in easy steps"...from <!-- w --><a class="postlink" href="http://www.computerstep.com">www.computerstep.com</a><!-- w -->

it was the error in THEIR book...

see if this is another one:

p : {font-family:"jurassic"; font-size:60pt}

"sets all test in bold in a paragraph to 60pt jurassic. this effect will only some into play if the browser encounters a bold container pair in a paragraph. a paragraph or a bold tag on it's own is not sufficient to invoke this text effect"

all that happens is that ALL <p> text goes to 60pt...

wether or not there are bold tags within the paragraph, everything in the <p> is set to 60pt...and only in ff, ie simply ignores it...

pff, cheap books!Should be something like this


<style>
p {font-family:"jurassic"; font-size:30px}
p b{font-family:"jurassic"; font-size:30px}
</style>

<p>Mary had a <b>little</b> lamb</p>
<p>But she went and lost it</p>

The font would not work or me because I don't have jurassic

Buy a better book:DThat's why if you REALLY want to know about it you go to the source (<!-- m --><a class="postlink" href="http://w3c.org">http://w3c.org</a><!-- m -->).Originally posted by Mr J
Should be something like this

<style>
p {font-family:"jurassic"; font-size:30px}
p b{font-family:"jurassic"; font-size:30px}
</style>

<p>Mary had a <b>little</b> lamb</p>
<p>But she went and lost it</p>

The font would not work or me because I don't have jurassic

Buy a better book:D
lol, yeah...or sign up to a good forum with cool dudes such as yourself can help you out!

thx Mr J, i had sort of tried the "p b" but with the colon "p:b" thinking that that might be it, reading the text, it was only when a bold tag had been reached inside a <p> tag...

maybe it was a typo and the ":" should have been a "b"...

Originally posted by ray326
That's why if you REALLY want to know about it you go to the source (<!-- m --><a class="postlink" href="http://w3c.org">http://w3c.org</a><!-- m -->).
okdokey! - bookmarked...thx ;)

<!-- m --><a class="postlink" href="http://www.nvnews.net/vbulletin/images/smilies/salute.gif">http://www.nvnews.net/vbulletin/images/ ... salute.gif</a><!-- m -->

dam, tags don't work to embed images in forum?! humpf!heh, emailed the company:

"Mike,
Another couple of possible typos in the HTML title? We've just reprinted
this but may need to reprint again quite soon.

Best wishes
Harshad
<!-- w --><a class="postlink" href="http://www.ineasysteps.com">www.ineasysteps.com</a><!-- w -->"

but my names bill and i signed the email bill, but he called me "mike"?

lol!
 
Back
Top