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)
-   -   "See Details" button alignment (https://forum.x-cart.com/showthread.php?t=30733)

nikki 04-26-2007 01:57 AM

"See Details" button alignment
 
The "See Details" button, under the product thumbnail, is in a fixed position. I have a larger default thumbnail size, 200x200, and want to re-align the "See Details" button so it is centered in the 200 pixel width. Where do I do that?

balinor 04-26-2007 04:05 AM

Re: "See Details" button alignment
 
Are you using a single column display or multi-column? Good thread on which template is which here:

http://forum.x-cart.com/showthread.php?t=21529

Moving to Template Editing

nikki 04-26-2007 04:43 AM

Re: "See Details" button alignment
 
Thanks,

I am using single column.

balinor 04-26-2007 05:01 AM

Re: "See Details" button alignment
 
Then you'll want customer/main/products.tpl. Just set the table cell where the image resides to be center aligned (style="text-align: center;") and that should fix you right up.

nikki 04-26-2007 08:10 AM

Re: "See Details" button alignment
 
I should demote myself back to newbie from member. I see the file, products.tpl. I can't find where to apply the code you suggested. Does it go here somewhere?

<td class="PListImgBox">
<div class="PListImgBox">
<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}</a>

Please hold my hand a little more.

pauldodman 04-26-2007 08:56 AM

Re: "See Details" button alignment
 
<td class="PListImgBox">
that is the "table cell" Padraic refers to.
Pop your bit of code in there:
<td style="text-align: center;" class="PListImgBox">

nikki 04-26-2007 09:24 AM

Re: "See Details" button alignment
 
<td style="text-align: center;" class="PListImgBox">

This what the line looks like after. I did this in customer/main/products.tpl

Still the "See Details" button is way left of center. I didn't seem to move it at all.

balinor 04-26-2007 09:34 AM

Re: "See Details" button alignment
 
You'll want to look at the PListImgBox class in skin1.css...it may be overriding the formatting of that cell.

nikki 04-26-2007 09:43 AM

Re: "See Details" button alignment
 
Products list
*/
TD.PListImgBox {
WIDTH: 500px;
TEXT-ALIGN: center;
VERTICAL-ALIGN: top;
WHITE-SPACE: nowrap;
PADDING-RIGHT: 8px;
}

This is what's in skin1.css


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

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