| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to center product thumbnails | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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------------ |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Yes, I can see you've had a good go at this - you've got align center in every single possible div/table cell.
In which case, most likely is that somewhere an align left is overwriting it. Try changing this one: dialog .content { color:#CCCC99; text-align:left; }
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the response. I tried changing that in in main.css and altskin.css but it had no effect.
In ALTSKIN.css, I tried adding... product-cell .image {text-align:center; } but that didn't work either. I also tried editing these lines within MAIN.css } tr.highlight td, tr.highlight th { background: #3b2e22 none; text-align:center; } tr.center-row th { text-align: center; } but that didn't work either. Here is what Web-Developer is showing me. http://www.synapdev.com/downloads/help.jpg |
|||||||
#4
|
|||||||
|
|||||||
![]() I tried some more things this evening, but they also did not work.
Any ideas? I'm missing something simple and it's driving me insane. |
|||||||
#5
|
|||||||||
|
|||||||||
![]() In firebug - I added
margin: 0px auto; to .products .image .image-border in altskin.css and they centered
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|