Spacing between list items in widgets

  • Unknown's avatar

    I would like to know how to increase the spacing between list items in all of the right sidebar widgets (Pages, Recent Posts, Recent Comments, Links, Categories, etc.). It’s very hard to differentiate between the different list items—they all run together—so I’d like more space between them. I don’t need to increase overall line height, because that won’t solve the problem. My understanding is that I could do this by increasing the top and bottom margin ? but I can’t seem to figure out how to put all this into the appropriate code.

    I’d really love some help!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    We need a link to the blog please. Each theme is different.

  • Unknown's avatar

    Sorry, I thought it came through with my question. Here it is:
    http://survivingtherapistabuse.wordpress.com
    The theme is Andreas04

  • Unknown's avatar

    It doesn’t look like you have the CSS upgrade, is that correct? Without it there is no way to change the spacing.

    With it, you would add bottom padding to ” .subcontainer ul, .subcontainer li ”

  • Unknown's avatar

    I was waiting on upgrading until I could figure out whether I could do the changes and have them show up on preview. I thought I’d be able to test things out and preview them beforehand before purchasing the upgrade, is that not correct?

    I tried using:
    .subcontainer ul, .subcontainer li { padding-bottom: 8 px}
    but nothing different shows up in the preview. What am I missing?

  • Unknown's avatar

    I deleted everything from the CSS edit window, added the following, made sure “add to existing…” was selected and clicked preview and the padding was there.

    .subcontainer ul, .subcontainer li {
    padding-bottom: 8px;
    }
  • Unknown's avatar

    One note, the above will not effect the spacing on all widgets, just those that use the unordered list. As an example, the recent comments and category cloud widgets use tables, so the spacing on those will not increase.

  • Unknown's avatar

    Thank you so much! That’s been driving me nuts!

    So…for the others would I have to increase the cell height in the tables? How does that work?

  • Unknown's avatar

    Actually I figured out how to increase it on the recent comment widget. There are two additions you have to make. Add the following to your CSS:

    td.recentcommentstexttop {
    padding-bottom: 6px;
    }
    
    td.recentcommentstextend {
    padding-bottom: 6px;
    }

    The styling for the category cloud is set directly in the underlying theme php script files, and we do not have access to those.

  • Unknown's avatar
  • Unknown's avatar
  • Unknown's avatar

    Hi guys. I’m looking to do the same thing you did here with my recent posts column on the right hand side of digitalsociety.org.
    I can’t locate the code you are talking about. Could one of you walk me through adding some padding to this list?
    Thanks so much!

  • Unknown's avatar

    @thelobbyist, sorry, you are in the wrong forum and need to head over to http://wordpress.ORG/support/ as that is where self-hosted wordpress blogs using the software from wordpress.ORG are supported.

    These forums are for those hosted here on the wordpress.COM free hosting service and things here work differently and our answers typically will not work for you.

    If you do not know the difference, see this support document for the differences: http://support.wordpress.com/com-vs-org/ .

  • Unknown's avatar

    I’m aware that there was a difference. Wasn’t aware that code adjustments would be that different. I just searched for this in google and your post came up. Haven’t found much in way of a solution. But I’ll head over there are see what happens. Thanks!

  • The topic ‘Spacing between list items in widgets’ is closed to new replies.