View Single Post
  #1  
Old 02-28-2010, 09:20 PM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default How to center product thumbnails

Ok, maybe because it's late and I'm ridiculously tired, but I've tried so many things and cannot get this to work.

How do I get the product thumbnails to be centered in the table cells? Here is what that portion my /customer/main/products_t.tpl looks like:

(page link: http://67.20.92.91/store/Hand-shaped-Bodyboards/ )

-----------begin code------------

<tr{interline name=products_matrix}>

{foreach from=$row item=product name=products}
{if $product}

<td{interline name=products additional_class="product-cell"} style="padding-top:5px; padding-bottom:5px;">
<div class="image">
<div class="image-border"{if $config.Appearance.image_width gt 0 || $product.tmbn_x gt 0} style="width: {math equation="x+14" x=$product.tmbn_x|default:$config.Appearance.image _width}px;"{/if}>
<a href="{$product.alt_url|default:$product.page_url| amp}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>

{if $active_modules.Special_Offers && $product.have_offers}
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl"}
{/if}
</div>
</div>
</td>

{/if}
{/foreach}

</tr>

-----------end code------------
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote