View Single Post
Old April 28th, 2009, 03:22 PM   #1 (permalink)
sydude
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 21
How to vertically align images in the imagebit?

When browsing thumbnails, how can I get just the images to be vertically centered in each cell, without having the additional info be centered as well?

I think I'm in right place, but 'valign' or 'vertical-align:' don't seem to work. Any ideas?

Here's the vBgallery code I'm working with (unmodified):

Quote:
<td class="alt1" valign="bottom" width="$cellwidth">
<if condition="$images['sticky']">
<div align="$stylevar[right]"><img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" title="$vbphrase[sticky_image]" /></div>
</if>
<div align="center" style="margin-top:5px;margin-bottom:5px">
<a href="showimage.php?$session[sessionurl]i=$images[imageid]$adv_sorturl"><img alt="$images[title]" border="0" src="$images[url]" /></a>

</div>
sydude is offline   Reply With Quote