Forums

[resolved] How to adjust the vertical Spacing for Categories (3 posts)

  1. Santab
    Member
    Posted 2 years ago #

    Hi, I am new to WordPress and i need help.

    I have inserted this code: <?php wp_list_categories('title_li=&depth=1'); ?> into the footer section. I realized the vertical spacings of the categories name are narrow. How do i adjust the vertical spacing for Categories ?

    I have tried using CSS : line-height:0.6em; all this does is create a bigger space between every line. What i am looking for is the space between each category name.

    Current Example :
    -Category
    Name 1
    -Category
    Name 2
    -Category
    Name 3
    -Category
    Name 4

    Ideal Result:
    -Category
    Name 1

    -Category
    Name 2

    -Category
    Name 3

    -Category
    Name 4

  2. Edward Caissie
    Member
    Posted 2 years ago #

    A link to your blog and the current theme you are using may be relevant to making suggestions for this issue.

  3. Santab
    Member
    Posted 2 years ago #

    Hi, i have managed to solve the problem.
    How stupid i am, it is kind of straight in the face solution.
    What i did was to set the

  4. margin apart, thats all.

    Anyway, thanks offering your help !

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags