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

htmlbody set font and size

Status
Not open for further replies.

tractorvix

Technical User
Jun 29, 2004
122
GB
Hi there,

I have a long mail to send out which requires the font size to be set to 10 and the format to be arial.

I've tried the below, but it keeps reverting back to times new roman.

help please!

.HTMLBody = "<p><fontsize=10 face=arial> Colleagues <br><b>Not applicable to Colleagues in departments</b><br>In line with requirements, the annual statutory Training for 2006 is now due for completion<br>I have outlined below the instructions for completion together with deadline date."

not familiar with HTML and don't have frontpage or anything for me to check the code on.

Thanks

Vix
 
I believe fontsize should be
<font size=10 face=arial> with the space

-Pete
 
Sorry...and Arial should be in quotes...try:
<font face="Arial" size="10px">

and you might want to end the formatting as well
</font>

-Pete
 
Hi tractorvix,

Just a thought but the size might not behave like you are expecting. It might be useful to try setting the font to
Code:
<font face="Arial" size="2">
This should get you a more workable size.

Hope this helps

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top