![]() |
Thumbnail on product detail page too big |
Post Reply ![]() |
Author | ||
Lecmaco ![]() Newbie ![]() Joined: 02-January-2009 Location: Singapore Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 14-June-2012 at 9:38am |
|
Hi,
Recently I have upgraded my site to v4.5 and the thumbnail in the product details page have become big. I try to modify the storefront.css but not successful. My website is www.bricksworld.com Hope someone can help. Thank you Alan
|
||
![]() |
||
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
|
Hi Alan,
This shouldn't normally happen, but it appears that you did lose some CSS on this during your update. The default CSS for this is ~ line 900 in pcStorefront.css:
Personally, I wouldn't use both the width AND the height together like this, lest it squish your images. If only one or the other is defined (depending on whether your images are more horizontally or vertically oriented), then aspect ratio would be maintained.
|
||
![]() |
||
Lecmaco ![]() Newbie ![]() Joined: 02-January-2009 Location: Singapore Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
|
Hi Seah I'm try to find is there any work around on it or directly modify on the viewPrdcode.asp.
Code extracted from pcstorefront.css #pcMain .pcShowMainImage { text-align: center; vertical-align: bottom; margin-left: 5px; margin-right: 5px; margin-bottom: 5px; } #pcMain .pcShowMainImage img { width: 240px padding: 5px; border: 1px solid #FFCC00; } #pcMain .pcShowAdditional { width: 84px; text-align: center; margin-left: auto; margin-right: auto; } #pcMain .pcShowAdditionalImage { vertical-align: top; text-align: center; padding: 0 0 0 0; } #pcMain .pcShowAdditional img { width: 84px; border: 1px solid #FFCC00; } #pcMain .pcShowMainImageBorder { border: 1px solid #FFCC00; } |
||
![]() |
||
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
|
Ah yes, Chrome's inspect element tool ... Couldn't live without it!!! I use it constantly. What I could tell from this is that a whole lot of your style rules aren't being applied. So I copied your pcStorefront.css file and loaded it in an "out of the box" PC 4.5 location, replicated the problem and then pulled it into an editor where I could scan quickly for format errors. Here's your problem: You clipped the closing bracket at the end of the second style rule here:
That should be this (note the closing bracket):
If I only had a nickle for every time I've done something like that myself ;-)
|
||
![]() |
||
Lecmaco ![]() Newbie ![]() Joined: 02-January-2009 Location: Singapore Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
|
Hi Seah,
Thank you very much and you save my days. I was so careless. Best Regards From Alan
|
||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |