Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Reduce subcategory line spacing

Reduce subcategory line spacing

Locked

Views: 1,522

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
8 Nov 2007, 4:53 AM
#1
jeff_g avatar

jeff_g

Zen Follower

Join Date:
Oct 2007
Posts:
132
Plugin Contributions:
0

Reduce subcategory line spacing

When selecting a category from the category box, the page opens with a display of each of the sub-categories.

The default spacing looks like it is double or triple spaced.
I would like to reduce the spacing so each sub-cat is directly below each other.
I will not be using images for the sub-cats.

I have been experimenting with category_row.php and the style sheet with no success, but I do not know enough to go any further.

test site is here http://www.reisshardware.com

Thanks,
Jeff

8 Nov 2007, 6:37 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Reduce subcategory line spacing

This is in your stylesheet and there are 2 items ganged that you will have to seperate and adjust

This is specifically the class .categoryListBoxContents and also the H3 tag - Find these and seperate them out and adjust

h1, h2, h3, h4, h5, h6 {
	margin: 0.3em;
}
.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
	margin: 1em 0em;
}

So that you end up with:

h3 {
	margin: 0.0em;
}
h1, h2, h4, h5, h6 {
	margin: 0.3em;
}
.categoryListBoxContents  {
	margin: 0em 0em;
}

.centerBoxContents, .specialsListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
	margin: 1em 0em;
}
8 Nov 2007, 8:08 PM
#3
jeff_g avatar

jeff_g

Zen Follower

Join Date:
Oct 2007
Posts:
132
Plugin Contributions:
0

Re: Reduce subcategory line spacing

Thanks! :clap:

Works perfectly. Exactly what the customer wanted.

Added bonus... By showing me the option of the second setting allowed me to indent the category list after the customer asked for that.