Connecting Tech Pros Worldwide Help | Site Map

Setting a default font face and size for a table?

Isaac Grover
Guest
 
Posts: n/a
#1: Jul 20 '05
Hi everyone,

Rather than have this construct in my pages:

<table>
<tr><td><font face=arial size=3>line1</font></td></tr>
<tr><td><font face=arial size=3>line2</font></td></tr>
<tr><td><font face=arial size=3>line3</font></td></tr>
</table>

Is there a way to have a default "font" statement somewhere within the table
that sets the font parameters for every cell in that table?

Thanks,
Isaac

Are you losing $14,200.00 per year without your knowledge?
http://bigmoneyandfreetime.web1000.com
David Dorward
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Setting a default font face and size for a table?


Isaac Grover wrote:
[color=blue]
> Hi everyone,
>
> Rather than have this construct in my pages:
>
> <table>
> <tr><td><font face=arial size=3>line1</font></td></tr>[/color]

http://dorward.me.uk/www/css/#tutorials

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jukka K. Korpela
Guest
 
Posts: n/a
#3: Jul 20 '05

re: Setting a default font face and size for a table?


ephesys@myexcel.com (Isaac Grover) wrote:
[color=blue]
> Rather than have this construct in my pages:
>
> <table>
> <tr><td><font face=arial size=3>line1</font></td></tr>
> <tr><td><font face=arial size=3>line2</font></td></tr>
> <tr><td><font face=arial size=3>line3</font></td></tr>
> </table>
>
> Is there a way to have a default "font" statement somewhere within
> the table that sets the font parameters for every cell in that table?[/color]

Yes, it is in the browser settings.

Admittedly, in _some_ cases it may make _some_ sense to suggest font
properties for a table. But size=3 is pointless, to begin with; unless
there's something weird on the page otherwise, <font size=3> just tells
the browser to do what it would do anyway.

The simple way to suggest font for a table is to use CSS. This used to be
a frequently asked question, but most people have probably found the CSS
way by now. Start by removing all font tags (using a suitable utility
like Tidy if needed), and then use a simple style sheet, e.g.

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

For a little longer example, see
http://www.cs.tut.fi/~jkorpela/styles/simple/table.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Closed Thread