www.webdeveloper.com
Results 1 to 6 of 6

Thread: setting the font face,size using the td style property

  1. #1
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    1,381

    setting the font face,size using the td style property

    how do i set the font face,size using the td style property?

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    The below will affect all the TDs
    Code:
    <style type="text/css">
    td {
        font-family: Verdana, Arial, sans-serif;
    }

  3. #3
    Join Date
    Nov 2002
    Posts
    2,632
    Do you want to define it for all of your <td> tags? Here's how.

    In your <head> tag.

    <style type="text/css">
    <!--
    td { font-family:Arial, Helvetica, Verdana, sans-serif; font-size:100%; }
    -->
    </style>

    http://www.w3schools.com/css/css_reference.asp#font
    Last edited by spufi; 10-23-2003 at 12:27 PM.

  4. #4
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    Spufi - you've missed a few characters out in your font names. It might be a good idea to edit them in case someone copies and pastes...

  5. #5
    Join Date
    Nov 2002
    Posts
    2,632
    What's funny is that I originally grabbed that code from a well known quality source in terms of CSS. Let's hope they fixed their's by now too.

  6. #6
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    LOL - I wonder who that was..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles