X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Center images display problem (https://forum.x-cart.com/showthread.php?t=21273)

gallica 04-22-2006 12:20 PM

Center images display problem
 
Hello,

Does anybody knows why with this piece of code product_images.tpl, my images are not centered horizontally in the column ?
Code:

{* $Id: product_images.tpl,v 1.12 2004/05/28 12:21:05 max Exp $ *}
{if $active_modules.Detailed_Product_Images ne ""}
{capture name=dialog}
{section name=image loop=$images}
<table width="30"  border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td align="center" valign="middle"><div align="center"><a href="javascript:popImage('product_image.php?imageid={$images[image].imageid}','')">
    </A>[img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img]</div></td>
  </tr>
{/section}
</table>
{/capture}
{include file="dialog1.tpl" content=$smarty.capture.dialog extra="width=100%"}
{/if}


Here is the result i have :
http://www.france-modelisme.com/skin1/images/imges.jpg

Any advice is wellcome.
Thx

balinor 04-22-2006 05:41 PM

Either move the table tag outside the loop or add align=center to the table tag.

gallica 04-24-2006 07:26 AM

Quote:

Originally Posted by balinor
Either move the table tag outside the loop or add align=center to the table tag.


Perfect. Thanks very much Balinor.


All times are GMT -8. The time now is 05:24 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.