WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Strange line break between Link Category Label and Links (5 posts)

  1. yellowcandy
    Member
    Posted 9 years ago #

    On my site (which is just about ready to go now), I've got a sidebar with a link list. The list appears as it should, and the label for the list also appears correctly, but I can't figure out how to get rid of the extra blank line between the Link Category Label ("Great Food Sites:" in my case) and the first link in the list. I've gone into the Link Categories Menu option and have removed the br tag from the "Between Link and Description" box, but I'm stumped.

    The relevant code that generates the list in question follows. Oh, and if you want to see the thing in situ, it lives here: http://nycnosh.com

    \\
    Most Recent Posts:
    <?php get_archives('postbypost','05', 'html'); ?>
    <?php wp_list_pages(); ?>
    <?php get_links_list(); ?>
    <li size=1 id="categories"><?php _e('Categories:'); ?>
    \\

  2. Minna
    Member
    Posted 9 years ago #

    You have this in your style.css "li#linkcat-1 h2" if you add margin-bottom: 2px; (or some other smallish number), it'll reduce the space between the "Great Food Sites:" and the links.

  3. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Try this at the bottom of your css:

    #menu ul li h2 {
    margin-bottom: 2px;
    }

    does that change anything ?

  4. yellowcandy
    Member
    Posted 9 years ago #

    Thanks Minna and podz-- that was precisely the problem. I really appreciate all the help.

  5. guiggster
    Member
    Posted 8 years ago #

    I have a similar question perhaps. In my sidebar, how do I get rid of the line break between the "Search" label and the search form? this line break only occurs in IE.

Topic Closed

This topic has been closed to new replies.

About this Topic