View Full Version : applying style

02-17-2004, 08:03 AM
<style type="text/css">
TD { font-color: red;}

I am a boy
</TABLE>I am testing style with the above code.
I think the text "I am a boy" is supposed to be in red.
But it is actually shown in black.
What's wrong with the above code?

Thank in Advance.

02-17-2004, 08:47 AM
TD { color: red;}

02-17-2004, 08:54 AM

02-17-2004, 09:02 AM
To put the above reactions in a sentence:

There is no such property as "font-color"; the correct CSS property you are looking for is "color".
The most comprehensive reference of CSS properties can be found at the W3C (http://www.w3.org/), for example CSS 2.1 (http://www.w3.org/TR/CSS21/).

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum