PDA

View Full Version : Finding the height of a tag


Kor
11-03-2003, 03:49 PM
I mean, If I have not stated the height of a tag, can I find and use the value of that height somehow?

<div id="txt">
bla<br>
bla
</div>

Can I find the value of the height of the document.getElementById('txt') or something like that ?

allida77
11-03-2003, 03:56 PM
I use:

document.getElementById('txt').scrollHeight