From: Stephane B. <ste...@li...> - 2003-04-03 16:00:06
|
Hi, I suppose it isn't a dynapi specific question but I hope you'll be able to answer this question: And I hope you'll forgive me if it isn't the right list where I should post this mail... I would like if there is a solution to get the real height of a DIV (depending on what is written in it). <div id="MyDiv" style="position: absolute; left: 700px; top: 600px; width:100px; height: 10px;"> Blablabla...<br> Blablabla...<br> Blablabla...<br> Blablabla...<br> </div> If I try "document.getElementById('MyDiv').style.height", I always get 10px (enven if there are many "Blablabla...<br>" lines). And if I don't specify a height in div style, I get "NaN". Is there a solution to get the real div height? I've got the same trouble with width. Thank you very much. -- Stephane |