Forums / Templates, Stylesheets, Page Layout / Spacing between lines on main page under Categories

Spacing between lines on main page under Categories

Started by pookiehair on 21 Oct 2011, 7:11 PM · Views: 1,346

Results 1 to 6 of 6
21 Oct 2011, 7:11 PM
#1
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Spacing between lines on main page under Categories

I would like to space out the items under Categories on main page as they seem very close together. Is there an easy way to do this? I dont want a whole line left between the items just a small gap.

Categories
WHAT'S NEW!
:cool: A Miniature Christmas
Deluxe Toy Dolls
Jumeau-Style Toy Dolls
Bridal Toy Dolls
Shabby Chic Toy Dolls
Ballerina & Fairy Toy Dolls
Ready to Dress Toy Dolls
Micro Doll Supplies
Micro Wigging Supplies

One more question.
Can I add a small image to the left of all the items above? I have added a smiley (above) where I would like an image, but one on every line.
http://towerhousedolls.co.uk/demo/
Running 1.3.9h

Thanks very much for any help.

21 Oct 2011, 7:25 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Spacing between lines on main page under Categories

You could play with a rule like

#categories a {line-height: 1.5em;}

This will also space out any category names that wrap to a second line, so if you have this situation it will not be a good solution for you.
Categories Dressing will give you complete control over every aspect of the categories sidebox, including item spacing and icons (list-item markers).

22 Oct 2011, 2:17 PM
#3
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Re: Spacing between lines on main page under Categories

gjh42:

Categories Dressing will give you complete control over every aspect of the categories sidebox, including item spacing and icons (list-item markers).

Thanks very much gjh42. :smile:
Is this the page you are refering to? http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=609
Will it be ok on a 1.3.9h site do you think?

12 Apr 2012, 12:04 AM
#5
mshultise avatar

mshultise

Zen Follower

Join Date:
Feb 2005
Location:
Captain Cook, Hawaii
Posts:
172
Plugin Contributions:
0

Re: Spacing between lines on main page under Categories

I know this is an old thread, but this solution may help someone.

My Sister, who is NOT Zen-Cart knowledgeable spaced hers out and it seems to work. I am still looking for a problem but have not found one yet.

What she did was create new categories and sort them between existing ones. There are no names on the empty categories and clicking in the sidebox on one in the sidebox does not do anything.

We are using the template Blue Strip Reloaded.

Her site is soapfolks dot com.

Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

12 Apr 2012, 4:19 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Spacing between lines on main page under Categories

That obviously works visually, as the spacer categories have null names so there is nothing to click on. Of course, it's all or nothing, and you can't control the exact spacing, which seems a bit much. You also have "junk" markup in there, which doesn't necessarily matter to visitors but may to Google.

You could also accomplish the spacing and control it precisely with a couple of CSS rules:

#categories a {display: block;}
#categories a+br {display: none;}

Add margin-top or margin-bottom or whatever you like to the block items to control spacing.
You can get the same effect you have just with the
#categories a {display: block;}
rule, as that will leave the extra <br /> making a double space between real categories without adding dummies.