Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to set default font in a table

    I would like to set the tag

    <font face="Verdana" size="1" color="#FFFFFF">

    as a default font setting for a whole table, instead of repeating this tag for every cell. Is this possible? How?

    Thanks,
    Richard

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    Maryland
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <style>
    td{
    font-family:Verdana;
    font-size:1;
    color:#FFFFFF;
    }
    </style>

  • #3
    New Coder
    Join Date
    Sep 2002
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Excellent! Thank you very much.

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    One thing is, in css there is no such thing as font-size:1;

    You must define px,pt,em or %

  • #5
    Regular Coder
    Join Date
    Jan 2004
    Location
    Maryland
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    True. I forgot to change that. I just copied and pasted :-x

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Nightfire
    One thing is, in css there is no such thing as font-size:1;

    You must define px,pt,em or %
    You left out the equivalents to the size fields:

    xx-small, x-small, small, medium, large, x-large and xx-large which correspond to the sizes 1 through 7.

    http://www.w3.org/TR/CSS2/fonts.html#font-size-props
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #7
    New Coder
    Join Date
    Sep 2002
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I realized that too, and changed it into font-size:10; and my problem was solved

    I found that characters printed 1 pixel heigh were very hard to read, even with the best glasses in the world


  •  

    Posting Permissions

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