Web Analytics Made Easy -
StatCounter how to set default font in a table - CodingForum

Announcement

Collapse
No announcement yet.

how to set default font in a table

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    <style>
    td{
    font-family:Verdana;
    font-size:1;
    color:#FFFFFF;
    }
    </style>

    Comment


    • #3
      Excellent! Thank you very much.

      Comment


      • #4
        One thing is, in css there is no such thing as font-size:1;

        You must define px,pt,em or %

        Comment


        • #5
          True. I forgot to change that. I just copied and pasted :-x

          Comment


          • #6
            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.

            Comment


            • #7
              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

              Comment

              Working...
              X