| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Vertically centre thumbnail in 125px high div | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Vertically centre thumbnail in 125px high div
Hi, I was wondering if anybody has created a mod which will vertically centre a 125px wide thumbnail in a 125px high div, so that if the image is less than 125px high, it still centres vertically within the div?
Also, line 25 of product_list.tpl has "image_y=$product.tmbn_y" in it, which is currently pulling the value '74px' when there is no image - where does this 74px come from? I have set the maximum height of thumbnails to 125px in the control panel. I have changed this temporarily to "image_y=125px" but I thought there might be somewhere I can change it 'properly', i.e. not in the template itself, but by changing the variable $product.tmbn_y. Many thanks in advance for any help you can give. Edit: I've found a way of doing it. I've added the following to line 25 of products_list.tpl: Code:
and added the following style to altskin.css: Code:
(Don't forget that my product box background is black, so you may want to change the colour of the background-color property to match your background.)
__________________
X-Cart Gold Version 4.3.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|