By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,724 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,724 IT Pros & Developers. It's quick & easy.

Setting a default font face and size for a table?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.