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)
-   -   Product Template - View details formatting issue (https://forum.x-cart.com/showthread.php?t=8842)

rgbdna 08-08-2004 09:52 PM

Product Template - View details formatting issue
 
Hi,

I am trying to get the "view details" under the product thumbnail to center.

I have found the formatting under the product.tpl and it appears to be aligned to center...but does not diplay that way. For example:

<table border=0 width=100%>
<tr><td width=90 align=center valign=top>
<a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{in clude file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}
{$lng.lbl_see_details}</a>
</td>

I see the {$lng.lbl_see_details} and it looks like it should center

Any Suggestions?

Thanks,

rgbdna

jburba2000 08-10-2004 10:03 AM

For one thing, I have the
tag at the end of that code, that could be part of your problem. Try it and see?

Quote:

$products[product].tmbn_url}

{$lng.lbl_see_details}</a>
</td>

funkydunk 08-10-2004 11:11 AM

also it will center itself against the width that the cell has been set at. in this case 90 pixels. if the thumbnail is 150 pixels that would push the cell out somewhat but this would not apply to the centering of the text.

rgbdna 08-10-2004 02:47 PM

Thanks
 
Thanks the width adjustment worked.

<tr><td width=300 align=center valign=top>
<a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{in clude file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}

{$lng.lbl_see_details}</a>
</td>


My client wanted large thumbs and so adjusting the width in the table tag worked great.

Thanks!

rgbdna


All times are GMT -8. The time now is 02:38 PM.

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