Text formatting in HTML area

I have several calculations that are set as HTML areas on the layout. The problem I have is that the valign tag does not seem to work. It takes all of the text and shoves it up high in the field no matter if there is a valign tag or not. Am I doing something wrong?

var month = month_01_roto_paint_load_total;
var a = job_bid_lineitem_to_job_bid_type.roto_paint_capacity - month;  

return "<html><body bgcolor='#ff0000' valign='bottom'><center>" + utils.numberFormat(a, '####') + "</center></body></html>";

Hi Jim,

VALIGN is not a property of the body tag.
I suggest you use a table instead like so:

return '<html><body><table border="0" width="100%"><tr><td height="300" valign="bottom" align="center">' + utils.numberFormat(a, '####') + '</td></tr></table></body></html>'

You have to adjust the height property (wich is in pixels) to your needs.

Hope this helps.