Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table cell font problem 1

Status
Not open for further replies.

aharrisreid

Programmer
Nov 17, 2000
312
GB

I wish the text throught an entire page to have the attribute
<font face=&quot;Arial, Helvetica, Sans-serif&quot; size=&quot;-1&quot;>.

If I place the above <font> attribute just after the <body> tag, all body and form text is fine, but any text in table cells is a different size (sometimes a different font too)! Text within input boxes in table cells is fine, but not text by itself!

I have placed the <font...> tag after the <table> and <tr> lines with no success. The only way I can get the right font and size is to place the <font> command after <td>. This is a lot of work in a table with many cells!

Where can I place the <font> command once so it applies to the whole page (or at least the whole table)?

TIA
Alan
 
put a stylesheet in your document <head>:
<style type=&quot;text/css&quot;>
body, th, td { font: normal 10pt sans-serif; }
</style>

Then you don't have to use font tags at all.

Hope it helps,

petey
 
petey, thanks for the reply.

Your stylesheet suggestion did the trick.

>>Then you don't have to use font tags at all.<<

That's what I want - they are a pain!

Regards,
Alan


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top