I'm trying to define the height of my container based off of the image within that container using jquery or javascript. Is this possible? My code is as follows:
<div class="img-info"> <img src="images/photos/thumb_sample_l.jpg" alt="sample" title="Sample thumbnail" width="100%" /> </div>
$('.img-info').height($('.img-info > img').height())
– undefined