469,275 Members | 1,871 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Setting a default font face and size for a table?

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
Jul 20 '05 #1
2 26232
Isaac Grover wrote:
Hi everyone,

Rather than have this construct in my pages:

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


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

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #2
ep*****@myexcel.com (Isaac Grover) wrote:
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?


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

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Clive Everett | last post: by
32 posts views Thread by Andreas Prilop | last post: by
55 posts views Thread by Haines Brown | last post: by
54 posts views Thread by Brett Baisley | last post: by
20 posts views Thread by B Wooster | last post: by
2 posts views Thread by Ben Long | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.