On Wed, 01 Jun 2005 12:55:45 +0200, Dave Moore
<da**********@baesystems.com> wrote:
Hi,
I want to use CSS to define the font size in every cell of a table.
This avoids needing to define the font size in every <TD> tag using the
normal
multiple HTML <FONT SIZE="2"> notation.
Excellent idea. Some people will respond that you shouldn't use different
font sizes at all, but that is a different subject.
Therefore my question is, Is there a CSS attribute I can set on the <TD>
tag that will set the size of any text within the table cell?.
No need for that. CSS selectors can refer directly to elements. Example:
td {font-size: small;}
If you want to limit styles to a certain table, you can add a class
attribute to the table:
<table class="tablename"><tr><td>example</td></tr></table>
and refer to that:
table.tablename td {font-size: small;}
Any basic CS guide will help you with this. For example:
http://www.htmlhelp.com/reference/css/
--
Get Opera 8 now! Speed, Security and Simplicity.
http://my.opera.com/Rijk/affiliate/
Rijk van Geijtenbeek