Spacing between categories

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Spacing between categories

Post by DMotel »

At the bottom of the list of categories is the last link: "All categories" is there a way to add some room between the last real category and "All categories" links?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Spacing between categories

Post by garvinhicking »

Hi!

You can do that via CSS, yes.

Code: Select all

div.category_link_all {
margin: 50px;
}
(set the appropriate margins of top/bottom or what you need, of course :) )

HTH,Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Post by DMotel »

Before I do this just to clarify: I want the spacing to stay the same between all of the category links except for one: the second and the last one.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The CSS code above only affects the margin of the "All categories" link of the default serendipity categories sidebar plugin, and nothing else.

If you are not using the default serendipity category plugin, or if you have modified it, or if you modified the plugin_category.tpl theme to not contain the <div class="category_link_all"> element, then this trick might not work for you.

To tell you if it would work, we would need the URL of your blog.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, on http://www.bernsteinmedical.com/hairtransplantblog/ you do have the right .category_link_all code, so you are able to add the CSS I mentioned to your style.css to add the spacing.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Post by DMotel »

Beautiful. Thanks
Post Reply