Oops, forgot that margin-top etc. will have no effect on inline text elements. You need block display for this to work.
Just adding
display: block;
to a.category-top will then cause the spaces between items to double, because there will now be a duplicate line break in the code.
You could install Categories Dressing which takes care of the details of this, and also allows you to organize the long list of categories with subheadings.
If you just want to get the spacing on your own. add to your stylesheet:
#categories a {display: block;}
Then edit /includes/templates/your_template/sideboxes/tpl_categories.php.
Find
PHP Code:
$content .= '<br />' . "\n";
}
}
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' ...
and delete the
'<br />' .
to get
PHP Code:
$content .= "\n";
}
}
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' ...
Likewise, remove the breaks from the links at the bottom of the file, like this:
PHP Code:
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
...
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";
}
and delete
. '<br />'
to get
PHP Code:
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
...
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . "\n";
}
Bookmarks