Is there any way I can find the height of an element rendered on the DOM.
Even when I zoom-in/zoom-out, it should give me the actual height of the element. Currently I have used:
HTML:
<div >
<span><img src="Desert.jpg" style="border:none;width:100px" id="imgdiv"/></span>
<br/>
<input type="button" id="heightcalc" value="Find Height" />
</div>
jQuery:
$('#heightcalc').click(function(){
alert($('#imgdiv').height());
});
Now with 100% Zoom the height of the image 75. With 200%/300%/400% Zoom the height is same i.e. 75. My requirement is whenever I increase the Zoom the height should also change. Is there any way I can find the relative height of the image. I tried this in IE9, Chrome/Firefox - the result is the same.
Also, I did try with clientHeight, offsetHeight, outerHeight without no luck !
Any help is greatly appreciated.
Thanks Anirban