Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Featured Product Images Not Alligned

Featured Product Images Not Alligned

Locked

Views: 890

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Mar 2009, 1:46 AM
#1
bishop08 avatar

bishop08

New Zenner

Join Date:
Feb 2008
Location:
Chico, CA
Posts:
2
Plugin Contributions:
0

Featured Product Images Not Alligned

I am having trouble with my image handling. As I add products to my Featured Products area on my site they seem to position themselves randomly. I expect them to add left to right and when there is not enough room add another row. The problem is they start new rows seemingly at random.

https://www.legs2die4.com/zencart

As you can see...The first line went great. Then the images began to appear in random rows. WHY? Anybody ever see this? Better yet...Anybody have a cure?
Steve

I am running V1.3.7 with GoDaddy no upgrades, only minor changes to templates.

21 Mar 2009, 3:18 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Featured Product Images Not Alligned

You must be viewing this in IE....if you have FireFox browser look at it there. This is an IE issue and you can search for fixes for IE on this forum....

Always do your design in the most standards compliant browser available for your platform, then fix and stupid IE issues after you are finished

22 Mar 2009, 8:51 PM
#3
bishop08 avatar

bishop08

New Zenner

Join Date:
Feb 2008
Location:
Chico, CA
Posts:
2
Plugin Contributions:
0

Re: Featured Product Images Not Alligned

Much Thanks! I never thought of that...I just kept pouring over the code. What can I say, I'm a newbee. steve

22 Mar 2009, 9:29 PM
#4
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: Featured Product Images Not Alligned

IE8 shows the images properly - as does firefox... The problem with IE7 is because you have a border on #centerboxwrapper... remove the border to fix the problem...

alternatively, edit the product_listing.php module (in your customer module folder)

if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
if ($num_products_count < PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == 0 ) {
$col_width = floor(100/$num_products_count) - 0.5;
} else {
$col_width = floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 0.5;
}
}

the subtraction of -0.5 from the calculation should help IE7...