You're off by 1pt. Since you've set the body to 8pt and the timecontainer span has no style and cannot (easily) have a <font> tag included, it is using the 8pt of the body. 7pt is very close though. You really shouldn't use the font tag anyway as it has been deprecated. In this particular case, if you set the body to 7pt and remove all font tags, you will be in business. However, pts and pixels are also poor choices for font size. % is ideal. The size you are looking for is about 60%. Now this makes for more problems though, many browser/system combos don't have Verdana available. It is a rather large font that is also more readable than most when displayed at a small size, so whatever is substituted in those situations is likely to be too small to read. At least if you do it as a percent, everybody can resize the text if they know how (IE cannot resize pts or pixels).
I'd replace:
HTML Code:
<body style="font-family: Verdana; font-size: 8pt">
<div><font face="Verdana" size="1">Current Server Time:</font><span id="timecontainer"></span><font face="Verdana" size="1">
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script></font></div>
with:
HTML Code:
<body style="font-family: Verdana; font-size: 60%">
<div>Current Server Time:<span id="timecontainer"></span>
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script></div>
Bookmarks