Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Split Categories to List into 2 columns?

Split Categories to List into 2 columns?

Locked

Views: 1,552

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Sep 2010, 11:42 PM
#1
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Split Categories to List into 2 columns?

Hi. I would like to split my categories into two column on this page: http://www.lasilhouettelingerie.com/shop/shop-by-designer-c-72 (instead of one long column)

Under configuration>maximum values I was able to change this: "Categories To List Per Row" from 3 to 18 to split my list in half. Now how can I put the second half into another column to the right? I was hoping to find this in the admin control panel.

13 Sep 2010, 4:46 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Split Categories to List into 2 columns?

"Categories To List Per Row" from 3 to 18 to split my list in half

Set that to the number to list per row which would be "2"

13 Sep 2010, 4:58 AM
#3
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: Split Categories to List into 2 columns?

That still puts the names into one long column with two names a large space and then two more.

I am looking for two columns with half in each row (18 per row).

I want it like this:

Name1 Name19
Name2 Name20
Name3 Name21
etc... etc...

Not like this:

Name1
Name2

Name3
Name4

Name5
Name6

13 Sep 2010, 5:04 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Split Categories to List into 2 columns?

You still have not reset this to 2 - - -
Yours

<div class="categoryListBoxContents" style="width:5%;"><

Mine with 3 abreast

<div class="categoryListBoxContents" style="width:33%;">
13 Sep 2010, 5:13 AM
#5
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: Split Categories to List into 2 columns?

I reset it to 2 and then changed it back because it did not work.

But now I changed it back to 2 so that you can see. Here it is:
http://www.lasilhouettelingerie.com/shop/

My code now show this:

<divclass="categoryListBoxContents" style="width:50%;">

It is still in one column.

13 Sep 2010, 5:27 AM
#6
kobra avatar

kobra

Black Belt

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

Re: Split Categories to List into 2 columns?

In your stylesheet find this and change to left - - as float center is not a valid call

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

http://www.w3schools.com/css/pr_class_float.asp

13 Sep 2010, 5:43 AM
#7
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: Split Categories to List into 2 columns?

Thank you that is what I was looking for. I appreciate your help!