I have the following code:
<div class=content>
<a href=/profile/Nat's Rare & Raw class=link-name><strong>Irene Natalia</strong></a>
Hooray! we'll proceed with the shipping and inform the tracking # tomorrow :) Thank you, Angel! :)
<br>
<span class=date>7 days ago</span>
</div>
I wanted to know the height of this div from using javascript. Is there a way to do so?
This div has a fixed sized width (in this case 150px). I just wanted to know the height of the div say the text changed. Preferred method is via jQuery but javascript is fine as well
EDIT:
A very important note here is that this is a calculation before the div is being rendered. I am basically creating a pinterest layout and I need to calculate the height of the comments in the item card so that masonry can lay it out first before the image is loaded.