Is there a function that would return the pixel height of a div? I want to add images to the side of said div based on the size of the div (which would be dependent on the user's content, and would change the size of the div)
Thanks!
Is there a function that would return the pixel height of a div? I want to add images to the side of said div based on the size of the div (which would be dependent on the user's content, and would change the size of the div)
Thanks!
document.getElementById('divId').offsetHeight
should give you the height.
If using jQuery:
<div id="something">...</div>
jQuery:
$("#something").height();