My div
can hold up to four images, with a minimum of one. Currently, the images are aligned to the left within the container. I am looking to center align them regardless of how many images there are in the div
.
This is the code snippet that I currently have:
<div id="bigImg" {if $ads_settings.enable_video && $listing.enable_video && $listing.video}style="display: none;"{/if}>
<center>
<a href="{$live_site}/images/listings/{$listing.images[0].picture}" class="thickbox" rel="image_gallery">
<img src="{$live_site}/images/listings/bigThmb/{$listing.images[0].picture}" class="pic" onmouseover="this.className='pic_over';" onmouseout="this.className='pic'" alt="{$listing.title|strip_tags:false}" />
</a>
</center>
</div>
You can view the website where I want this functionality implemented here.