
07-13-2010, 11:33 AM
|
|
|
|
 eXpert
|
|
Join Date: Sep 2006
Posts: 310
|
|
|
Right border not displaying on subcategory image
For some reason, the right border on all of my subcategory images isn't displaying.
I think it's something to do with the code which decides the maximum width of the subcategory image.
I added this style to altskin.css, line 934:
.subcategories img {
border: 1px solid black;
}
No matter how large I make the border, it won't display the right border! The width of the image, including its border, is always 124px, but I've set it to be 125px in General Settings, Appearance Options.
I then tried setting the width to 124px, and it still displayed at 124px, but still without the right border. Then I tried setting it to 123px, but it still displayed at 123px, but still without the right border. I then tried setting it to 150px, but it displayed at 124px, still without the right border!
I presume it is getting the width from this part of subcategories_t.tpl:
Code:
<a href="home.php?cat={$subcategory.categoryid}"><img src="{$subcategory.icon_url|amp}" alt="{$subcategory.category|escape}" width="{$subcategory.image_x}" height="{$subcategory.image_y}" /></a>
Does anybody have any ideas?
You can view it on the site I am customising:
http://www.mrdtrading.co.uk/store/home.php?shopkey=martin
then go to:
http://www.mrdtrading.co.uk/store/home.php?cat=3
__________________
X-Cart Gold Version 4.3.2
|
|