B
Bruce
Hi -
I've been looking all over for this and found everything but the
variation I need. I have a one-row HTML table with a page title, as
text, with a specified font and size (not style).
example:
<table... border=0>
<tr>
<td id="abc"> <font face="Arial" size="+2">This is my site</font>
</td>
etc. to close the table.
I know that if I put a "height=" in the "td" tag (or in a span tag), I
can retrieve its value with Javascript after the page is rendered.
But how can I get the ACTUAL number of pixels for the height that was
rendered by the browser for that text line, considering the font style
and size? I can't seem to find this anywhere. Is it possible? After
all, if the user changes his/her viewing text size, the font size will
increase/decrease and the # of pixels will change -- I don't oppose
this. But how can I get the actual size they are seeing?
Thanks.
I've been looking all over for this and found everything but the
variation I need. I have a one-row HTML table with a page title, as
text, with a specified font and size (not style).
example:
<table... border=0>
<tr>
<td id="abc"> <font face="Arial" size="+2">This is my site</font>
</td>
etc. to close the table.
I know that if I put a "height=" in the "td" tag (or in a span tag), I
can retrieve its value with Javascript after the page is rendered.
But how can I get the ACTUAL number of pixels for the height that was
rendered by the browser for that text line, considering the font style
and size? I can't seem to find this anywhere. Is it possible? After
all, if the user changes his/her viewing text size, the font size will
increase/decrease and the # of pixels will change -- I don't oppose
this. But how can I get the actual size they are seeing?
Thanks.