Distance (pixels) from an <img> to the bottom of the containing div
<p>I have a div which contains a few images. The images are styled to appear in a vertical column:</p>

<pre><code>.side_gallery img {
    display: block;
    margin: 3px 5px;
    padding: 0;
    border: 1px solid #aaa;
}
</code></pre>

<p>I have a javascript function which loops over these images and tweaks them. I want a simple way to calculate the distance, in pixels, from the bottom of each image to the bottom of the containing <code>&lt;div&gt;</code>.</p>
