title: Jquery get height of auto height element
body: <p>Is there any way to return the height of an element that is already set to auto? I just get 0 when I call $("#element").height();</p>
  
  <p>Here is the jquery code. The <strong>img.height()</strong> return 0 therefore the end result is off.</p>
  
  <pre><code>img.css({top: (img.parent().height() - img.height()) /2, left: (img.parent().outerWidth() - img.outerWidth()) / 2});
  </code></pre>
  
  <p>The HTML looks like this:</p>
  
  <pre><code>&lt;div id="exploreImage" class="virtual-room-large" style="width: 288px; height: auto; top: 185px; left: 89px; "&gt;
  </code></pre>