...

View Full Version : how to set default font in a table



Richard2003
02-17-2004, 01:04 AM
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

squirellplaying
02-17-2004, 01:12 AM
<style>
td{
font-family:Verdana;
font-size:1;
color:#FFFFFF;
}
</style>

Richard2003
02-17-2004, 01:36 AM
Excellent! Thank you very much.

Nightfire
02-17-2004, 01:42 AM
One thing is, in css there is no such thing as font-size:1;

You must define px,pt,em or %

squirellplaying
02-17-2004, 01:44 AM
True. I forgot to change that. I just copied and pasted :-x

Roy Sinclair
02-17-2004, 02:58 PM
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

Richard2003
02-17-2004, 05:34 PM
I realized that too, and changed it into font-size:10; and my problem was solved :p

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum