2076 Posts in 857 Topics by 449 members
|Go to End|
12 December 2009 at 12:49am Last edited: 17 December 2009 11:12am
Ok this is driving me a bit mental and it's possible I've been looking at it too long to see the answer anymore, and it seems so simple.
When a product is listed if the product image isn't the same dimensions as the display box it places a white surround to it. Ok sounds simple enough to sort just change the CSS.
Hmmm i have been all through the CSS and added my own but the images still get a white background.
When i use the same images in image_gallery they are displayed fine no surround unless i specify it so my question is where the hell is the eccomerce module getting the idea of putting a white surround on the images i can't see it in any of the CSS.
if your unsure what i mean heres the site http://gallery90.myriad-services.co.uk/online-store/
hope you can help put me out of my misery.
12 December 2009 at 5:02am
you have also checking the ProductGroup.css, i think you must change these parameters for another color!
border: 1px solid #c9e5f7;//default
12 December 2009 at 6:06am
Cheers for the response,
i have been through all the style sheets, i'm not sure it's held there. I have set a background colour and you can see that when it loads but then the image just sits on top of it. I'm wondering whether it's a code thing to make the image up to a certain size and if it's not say 100px by 80px make it that size with a white background.
Does that make sense?
Like i said this has been driving me made for three days now.
14 December 2009 at 11:06pm
i think this is a problem of the paddedResize as the (white) background is part of the image itself.
I have not tested it and it is entirely possible that I'm wrong but I think you have two options.
You can specify another background color in product.php on line 313 like
You can change that line to do a resizeByWidth instead of a paddedResize
14 December 2009 at 11:28pm
You were right on the money.
I was sure it was gonna be something along those lines but not being much of a php guy couldn't find the code.
Many thanks for that.
|Go to Top|