Web Analytics Made Easy -
StatCounter applying style - CodingForum

Announcement

Collapse
No announcement yet.

applying style

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • applying style

    Code:
    <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.
    Get my greedy up

  • #2
    TD { color: red;}
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      http://www.w3schools.com/css/css_reference.asp

      Moderator: General web building

      Get out from under them, resist and multiply.
      Get out from under precipice and see the sky.

      Comment


      • #4
        No such property

        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, for example CSS 2.1.
        Regards,
        Ronald.
        ronaldvanderwijden.com

        Comment

        Working...
        X