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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specify font size in table without CSS?

Status
Not open for further replies.

RubyRoot

Technical User
Feb 16, 2002
14
CA
I'm trying to specify the size of the font size in a table without specifying it for each piece of text.

I can't use CSS because I'm putting the table in an email and OE can't read the CSS.

If I specify it in the font tag the text in the table will pick up the font family but not the size.

This doesn't work:
<body>
<font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size = &quot;1&quot;>
<table>
.....

I can't figure out if I can specify the font size in the table tag.

Any help would be greatly appreciated.
 
I can't get it to work either with only HTML

What do you mean with I can't use CSS :

Can't you use a link to a style sheet or can't it read the style in a HTML-tag.

I mean with this last thing (1):

<table style=&quot;font-size:11px; font-family:arial; font-weight:bold; font-style:italic;&quot;>

If this works you can try(2):

<style>
.tablestyle
{
font-size:11px;
font-family:arial;
font-weight:bold;
font-style:italic;
}
</style>

<table class=&quot;tablestyle&quot;>

If both don't work, you can try it with javascript(3):

<BODY onload=&quot;SetTableStyle()&quot;>

<script language=&quot;javascript&quot;>
function SetTableStyle()
{
document.all['table1'].style.fontFamily = 'arial'
document.all['table1'].style.fontSize = '12px'
document.all['table1'].style.fontStyle = 'italic'
document.all['table1'].style.fontWeight = 'bold'
document.all['table1'].style.color = 'red'
}
</script>

<table id=&quot;table1&quot; border=1>

Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Thanks for the quick response. I did give these a try, unfortunately it didn't work.

I'm working with an ASP Form that submits an email. The body of the email is submitted with HTML tags to make it easier to read. It gets interpretted by the Email program, not a browser. That's why I can't use CSS or JavaScript.

I was hoping there was some way to include it in the table tag but that doesn't seem to be an option.
 
Can you show the code that generate the email stuff (I use ASP too)? Maybe we'll find a solution?

erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Sorry, OE: Outlook Express (or Outlook)

Basically the form uses JMail to send an email from the server. It's a method (in an include file) that reads a string argument so I have to put the whole page in a concatenated string.

Then I call my method, pass through the argument and send it away.

I hope this makes sense, The code is everywhere and too big to copy and paste.
 
Send the files to erik.leferink@twinsoft.nl and I'll look tomorrow morning. Be sure you send the part that generating the email-body.

Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top