I see loads of fixes for this..
But our issue is absolute positioning of the image within the container div.
Our images can be of any size ( within reason - php can resize as necessary but scaled proportionally ) so we have max width and height of our image set.
Example: html
<a id="product_image_preview" href="item.php"><img id="image" class="preloader" src="images/products/oakbookcase.jpg" title="Product Title" alt="Product Title" /></a>
Our css to handle this is:
Example css:
#product_image_preview { width:260px;height:140px;border:1px solid #aaaaaa;position:relative;line-height:140px;}
#product_image_preview #image {margin:0px auto;vertical-align:middle;max-width:260px;max-height:140px;}
All works great the issue is, that the image within the container div #product_image_preview centers the image horizontally but not vertically.
Any idea where I am cocking this up.
Our container div is always 260px x 140px