Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Categories/subcategories index image layout problem

Categories/subcategories index image layout problem

Locked

Views: 1,215

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
27 Oct 2009, 4:25 AM
#1
prim0pyr0 avatar

prim0pyr0

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Categories/subcategories index image layout problem

I have seven subcategories all setup with images, the main category is called "gallery" which doesn't have a picture.
My problem is that the subcategory images all lineup in a vertical single file line down the page, I would like them to form a grid say two lines of 4 across the page.
Settings in admin don't seem to change the layout: "Categories To List Per Row" is set to 5
I've tried installing flexible product listing, which only changed the product listings and didn't change the subcategory index layout.

website is thruthelenz.co.nz

Any help will be very appreciated

27 Oct 2009, 9:39 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Categories/subcategories index image layout problem

Try separating .categoryListBoxContents out of this statement into its own, and changing float:center; to float:left;

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: center;
}

27 Oct 2009, 2:45 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories/subcategories index image layout problem

Also change float: center; to float: none; in the remaining rule, because float: center is an invalid property value.

27 Oct 2009, 9:52 PM
#4
prim0pyr0 avatar

prim0pyr0

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: Categories/subcategories index image layout problem

Changed stylesheet.css :

#logo, .centerBoxContents, .specialsListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: none;
}

LABEL.categoryListBoxContents {
float:left;
}

Hasn't changed the layout >.<

28 Oct 2009, 8:02 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories/subcategories index image layout problem

Why did you add the LABEL ? That is what is preventing your change from working; .categoryListBoxContents is a div, not a label. You want simply```
.categoryListBoxContents {
float: left;
}

28 Oct 2009, 9:24 AM
#6
prim0pyr0 avatar

prim0pyr0

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: Categories/subcategories index image layout problem

Ah! Got it :D, Thanks for the help guys. I'm not very familiar with code, seemed odd to have it there with nothing (#variable) so assumed it had to have LABEL in front like the other ones 0_o.