See my comments below: "Stephane Boireau" <[EMAIL PROTECTED]> wrote: > 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>
I think the div is always 10px high but it has overflowed. Setting overflow to hidden like below you will see the size of the div. <html> <body> <div style="position:absolute; left:10px; top:10px; width:100px; height:10px; overflow:hidden;"> Blablabla...<br> Blablabla...<br> Blablabla...<br> </div> Lablablab...<br> </body> </html> - Kevin > 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 > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help