Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / 4 categories per row , not working

4 categories per row , not working

Locked

Views: 1,041

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Jul 2008, 3:55 PM
#1
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

4 categories per row , not working

Hi all , I have a shop I am trying to finish set to display 4 categories per row , then the category set to display on the main page.
This works fine in FF and Safari , Opera etc ... Does not work in IE 6 or 7

Can anyone suggest an IE fix to get the images to line up ? You can see the test site at :http://shop.daisymaycollection.co.uk/ as i said it should look lined up in a row of 4 not 3 then wrapped the last one.

Thanks for any pointers out there.

Cheers

10 Jul 2008, 7:53 PM
#2
kobra avatar

kobra

Black Belt

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

Re: 4 categories per row , not working

Try taking out the border and see if this corrects it first

Post back if it does

.categoryListBoxContents img{
border: 1px solid #909090;
}
10 Jul 2008, 9:08 PM
#3
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: 4 categories per row , not working

I have tried that , does not seem to make a difference . I think your probably right there is some strange CSS going on somewhere.

Maybe I have hacked about with the template too much !

Thanks for any help on the subject.

10 Jul 2008, 11:17 PM
#4
kobra avatar

kobra

Black Belt

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

Re: 4 categories per row , not working

To keep this dynamic you might apply this FIX

11 Jul 2008, 8:14 AM
#5
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: 4 categories per row , not working

Cheers Kobra , that seems to have fixed it , although I had to change the other line in the code instead to get it to function.

    $col_width = floor(100/$num_categories);
  } else {
    $col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW)-1;
  }

thanks for your help.