Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Categories To List Per Row - Only getting 1 column

Categories To List Per Row - Only getting 1 column

Locked

Views: 2,455

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
24 Sep 2008, 3:53 AM
#1
stepterr avatar

stepterr

New Zenner

Join Date:
Sep 2008
Posts:
13
Plugin Contributions:
0

Categories To List Per Row - Only getting 1 column

Hello all,
I've been searching the forum on the Categories To List Per Row topic and have found many but unfortunately none that solve my issue. I would like to list 2 categories per row on my main page and have this set in Categories To List Per Row, however, I'm still only getting one column.

Here is my CSS:

.categoryListBoxContents {
	width: 250px;
	height: 400px;
        position: relative;
	text-decoration:none;
}
.categoryListBoxContents a {
	width: 220px;
	height: 320px;
	padding: 10px;
	background-image:url(../images/picoutline2.gif);
	background-repeat:no-repeat;
        position: absolute;
	text-decoration:none;

}

I currently have 4 categories so I would like them to be in a grid centered on my main page. The background image is basically just a border that I'm using to outline the images. And I've disabled the left and right columns so the center column is the only one that is active. I've found that if I add "float: left;" to my .categoryListBoxContents it will create the grid but then of course it's not centered on my page. Any suggests would be greatly appreciated.

28 Sep 2008, 12:50 PM
#2
relaxme avatar

relaxme

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

Re: Categories To List Per Row - Only getting 1 column

Hello

I have just fixed a similar problem after several hours of searching. I am pretty new at this but I think this may work for you.

Refer to my original post -

http://www.zen-cart.com/forum/showthread.php?t=108992

Nick

28 Sep 2008, 2:30 PM
#3
kobra avatar

kobra

Black Belt

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

Re: Categories To List Per Row - Only getting 1 column

stepterr,

The CSS you are referencing is for the sidebox display and not the center column display

Supply a link to your site

Zen-Venom Get Bitten

28 Sep 2008, 11:04 PM
#4
stepterr avatar

stepterr

New Zenner

Join Date:
Sep 2008
Posts:
13
Plugin Contributions:
0

Re: Categories To List Per Row - Only getting 1 column

Here's a link to where the site is currently located site.
I took this over for a friend and it's been interesting to say the least. I probably should've just started it over from scratch instead of editing what had already been done. They started with a template and then edited the site from that, so that could be why it's using a style sheet tag that should be in the sidebox.

Relaxme, I tried making the changes that were in your other posts in category_row.php but unfortunately that doesn't seem to be doing the trick in this case. :( Is there some other place that this would need to be changed for the categories?

29 Sep 2008, 4:36 AM
#5
kobra avatar

kobra

Black Belt

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

Re: Categories To List Per Row - Only getting 1 column

I probably should've just started it over from scratch instead of editing what had already been done.
Yes this looks a real mess right now...
Assuming that this has used template overrides correctly try switching to the classic template to see what renders

Zen-Venom Get Bitten

29 Sep 2008, 6:35 AM
#6
stepterr avatar

stepterr

New Zenner

Join Date:
Sep 2008
Posts:
13
Plugin Contributions:
0

Re: Categories To List Per Row - Only getting 1 column

Well, I switched it over to classic and it still looks a mess. Doesn't look like the template overrides were used properly, as you had guessed. So I think I'm going to go with my original thought and just start over. :(Thanks for taking a look though!