WordPress.org

Forums

[resolved] How to remove the space in between categories (3 posts)

  1. jlshull6
    Member
    Posted 8 months ago #

    Hey all,

    My website is http://www.theboldthing.com. There is a gap in between the bottoms 2 categories, and I have no idea why. Anyone have any ideas how to fix this?

    Thanks!

  2. stacyduval
    Contributor Day Volunteer
    Posted 8 months ago #

    The reason for the extra space is because there is a child list inside of a list and the border and padding and margin are being added twice.

    So I created this little snippet of CSS to target the last child of a child list and remove the double styling.

    .widget ul li ul li:last-child {
       border:none;
       margin-bottom:0;
       padding-bottom:0;
    }

    You can try it and see if it works. I see you have JetPack enabled. You can put it in your custom CSS file.

    Cheers, Stacy

  3. jlshull6
    Member
    Posted 7 months ago #

    Stacy, I realized I hit resolved without even thanking you. SO sorry! What you suggested worked. :) However, I just moved a folder under different folder, and this problem is back. I tried putting this in the CSS again, but it didn't seem to do anything. Any suggestions?

Reply

You must log in to post.

About this Topic

Tags