Forums / Templates, Stylesheets, Page Layout / Setting different number of rows and picture sizes than the main category

Setting different number of rows and picture sizes than the main category

Started by willie_bee on 31 Oct 2011, 7:15 AM · Views: 739

Results 1 to 5 of 5
31 Oct 2011, 7:15 AM
#1
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Setting different number of rows and picture sizes than the main category

On my main category I have 9 categories, each icon is 160 x 120 pixels.

A B C
D E F
G H I

If you click on "A" for example

"A" has 6 sub categories and each icon is 160 x 120 pixels.

A B C
D E F

If click on "B" for example, "B" has 10 categories and they are listed as

A B C
D E F
G H I
J

and each icon is 160 x 120 pixels.

Is there a way to set it as 5 x 2 at 80 x 60 pixels JUST FOR THESE SUB CATEGORIES?

A B C D E
F G H I J

I could not find it in the admin and I'm going to try to answer my own question and say no and that the page needs to be customized for that but I'd like to hear if I am wrong

TIA.

don't mess with willie bee. i may go crazy on you.

31 Oct 2011, 7:18 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Setting different number of rows and picture sizes than the main category

You're correct, though you can make the subcat image files exactly 80x60 px and they will display at that size. Changing the number per row for one category will take some custom code. It might be doable with a per-category stylesheet and some customized CSS rules.

31 Oct 2011, 7:24 AM
#3
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Setting different number of rows and picture sizes than the main category

why u gotta depress me like that?

don't mess with willie bee. i may go crazy on you.

31 Oct 2011, 8:24 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Setting different number of rows and picture sizes than the main category

These rules in Firebug change my test site from the stock three per row to four per row, and if put in a stylesheet named c_23.css, would apply only to subcats of category 23.```
.categoryListBoxContents {width: 24% !important; height: 90px;}
.categoryListBoxContents a img {width: 80px !important;}
.categoryListBoxContents+br {display: none;}
#featuredProducts {clear: left;}

1 Nov 2011, 6:57 AM
#5
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Setting different number of rows and picture sizes than the main category

thanks for your advice. it is much appreciated.

don't mess with willie bee. i may go crazy on you.