...

View Full Version : applying style



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

<TABLE>
<TR>
<TD>
I am a boy
</TD>
</TR>
</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.

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

cg9com
02-17-2004, 09:54 AM
http://www.w3schools.com/css/css_reference.asp

ronaldb66
02-17-2004, 10: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