| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Aligning products | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I want to edit the alignment of the product thumbnails when they are three across. Which part of this code do I need to edit? I want them to line up either at the top of the thumbnail images or at the bottom where the price is.
Thanks in advance! Code:
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#2
|
|||||||
|
|||||||
![]() Could also be this template:
Code:
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#3
|
|||||||
|
|||||||
![]() Wow that is a lot of tables! Is that an add-on skin or have you done some customizing? The first thing you need to do is get rid of half of those nested tables. products_t.tpl is the one you want...and you want to set the table cell that contains the image to this:
<td style="vertical-align: top;">
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||
|
|||||||
![]() Thanks, Balinor. That's an add-on. What do you mean by get rid of nested tables? (And what are nested tables?)
Thank you!
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#5
|
|||||||
|
|||||||
![]() You have tables inside of tables inside of tables. Makes for really bloated code and makes it more difficult to control the display. You could probably get rid of most of them in that particular instance.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() Looks great in IE, but Mozilla / Firefox ignore it. Sure would be nice if these different browsers could settle on some standards.
Thanks again!
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#7
|
|||||||
|
|||||||
![]() How do you know which tables are extraneous?
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#8
|
|||||||
|
|||||||
![]() Well that's the thing...Firefox, Opera and Safari DO follow the standards...IE does not
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() Yeah - you're right about that. Is there a code that is equivalent to what you gave me that would work in Firefox? If so, can they be used together? Or do I have to make a choice between which browser is going to get the right appearance? Although, it's unfortunately not much of an option which choice is made. Most people still use IE.
Personally, I've only ever used it to check stuff like this. For personal use, I've always been a Mozilla fan. Thanks again ![]()
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#10
|
|||||||
|
|||||||
![]() All of those tables can be removed except the one that is used to create the three columns that display your products. That way, you have one cell containing one thumbnail. I bet the code I gave you will work once you get rid of those tables, as IE tends to add unnecessary padding to each table.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|