If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Problem with sub category indentation

Problem with sub category indentation

Started by darkusblack on 15 Feb 2013, 3:22 PM · Views: 554

Results 1 to 5 of 5
15 Feb 2013, 3:22 PM
#1
darkusblack avatar

darkusblack

New Zenner

Join Date:
Feb 2013
Posts:
5
Plugin Contributions:
0

Problem with sub category indentation

Hi,

First of all thank you to everyone that has helped me over the years with Zen Cart as I always find a solution to my problems, except this time!

I am having an issue with my sub category indenting more than the others when it contains further subcategories.

The shop is here: http://www.wargamesupplies.co.uk/shop

When you click on one of the main categories e.g Games Workshop, you can see that the Warhammer 40,000 and Warhammer subs are lined up with each other because they have subcategories within them. The Hobbit sub category is indented further because it doesn't contain any sub categories.

This issue happens as you move deeper as well. I would like all my subcategory headings to line up regardless of whether they have anything in them or not and I am tearing my hair out trying to find a solution.

Very much appreciate any help that can be provided for this.

15 Feb 2013, 4:01 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Problem with sub category indentation

Looks like it starts here in stylesheet_boxes.css:

#categories .category-products{
padding-left:10px!important;
}
#categories .category-products a{
padding-left:5px!important;
}

Try changing one or both to 5px.

15 Feb 2013, 4:18 PM
#3
darkusblack avatar

darkusblack

New Zenner

Join Date:
Feb 2013
Posts:
5
Plugin Contributions:
0

Re: Problem with sub category indentation

That moved the top category further to the left.

15 Feb 2013, 4:50 PM
#4
darkusblack avatar

darkusblack

New Zenner

Join Date:
Feb 2013
Posts:
5
Plugin Contributions:
0

Re: Problem with sub category indentation

stevesh:

Looks like it starts here in stylesheet_boxes.css:

#categories .category-products{
padding-left:10px!important;
}
#categories .category-products a{
padding-left:5px!important;
}

Try changing one or both to 5px.

Changing both to 15px actually worked to line them up. This pushed the upper categories to the right - I was hoping to try and bring the lower categories to the left as this will cause text wrapping as it goes deeper. This has fixed the problem so thank you very much! I would love to find a way to move the other text to the left though.

15 Feb 2013, 4:54 PM
#5
darkusblack avatar

darkusblack

New Zenner

Join Date:
Feb 2013
Posts:
5
Plugin Contributions:
0

Re: Problem with sub category indentation

Scratch that. It has worked for some of them but not for all of them.

Very frustrating!

EXAMPLES:
http://www.wargamesupplies.co.uk/shop/index.php?main_page=index&cPath=1_33
This now has all the sub categories lined up whereas before they were all over the place so this is fixed.

http://www.wargamesupplies.co.uk/shop/index.php?main_page=index&cPath=2
On this one the third sub category (The Hobbit) has indented and it is even more noticeable now.

Any thoughts?