Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How do I stop my subcategories from overlapping on my custom category sidebox?

How do I stop my subcategories from overlapping on my custom category sidebox?

Views: 952

Results 1 to 5 of 5
24 Feb 2012, 9:38 PM
#1
jonathancook_it avatar

jonathancook_it

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

How do I stop my subcategories from overlapping on my custom category sidebox?

I am adding sub categories but when i do it over laps the icon under it. SEE PICTURE. Is there a way to make the text push down farther so it looks uniform. Thank so you much! please help :(

25 Feb 2012, 12:12 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: How do I stop my subcategories from overlapping on my custom category sidebox?

We'll need a link to the site.

26 Feb 2012, 2:23 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: How do I stop my subcategories from overlapping on my custom category sidebox?

I can't see exactly what's happening, but the problem seems to be here:

div#categoriesContent a.category-top{
color: #FFFFFF;
height:25px;
display:block;
background-color:#333333;
margin-top:-14px;
padding:10px 5px 0px 5px;
text-transform:uppercase;
font-size:80%;
font-weight:normal;
text-align:center;
}

You're forcing the categories listing to certain heights and margins, which isn't allowing the subcategory expansion that Zencart does to happen. Place to start, anyway.

26 Feb 2012, 3:23 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: How do I stop my subcategories from overlapping on my custom category sidebox?

You are making the top categories display: block; but leaving subcats inline. Because there is a line break between the categories to make the stock inline items go to new lines, you need the negative margin-top to close up that space; but this covers up the inline subcat.

Your best bet for getting this kind of display to work completely right is to use a mod built to allow for it, like Categories Dressing, which will not require funky negative margins.