WordPress.org

Support

Support » Plugins and Hacks » List category posts » Add spacing between list items

Add spacing between list items

  • I want to add some spacing between the items in the list of posts displayed. I could accomplish this if I could style the <li> tag with a line-height parameter. The class= parameter allows me to specify a CSS class for the <ul> tag, but not the <li> tag.

    Is there some other way to add spacing between the list of posts displayed?

    http://wordpress.org/extend/plugins/list-category-posts/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I found the answer to my question.

    Use the class= tag to create a class for the <ul> tag.

    class=lcp

    In the style.css for your theme, add an entry like this:

    ul.lcp li {
    line-height: 1.5;
    }

    which applies the line-height property to the child list item of the list that is being styled by the class parameter of list category posts.

    linjian001

    @linjian001

    Good,thank you!
    Thanks a lot!

    linjian001

    @linjian001

    The same as: autor_tag, author_class, catlink_tag, catlink_class, comments_tag, comments_class, date_tag, date_class,
    excerpt_tag, excerpt_class, morelink_class, thumbnail_class, title_tag, title_class

    refer to:other_notes
    http://wordpress.org/extend/plugins/list-category-posts/other_notes/

    Okay, so this is what I have been scrolling the forum looking for.

    I understand the answer, but I don’t know where to create the class at..
    Where, what file, do I add class=lcp for the
    <ul > tag ?

    Add class=lcp to the [catlist] statement in the post or page where the list appears:

    [catlist name=rts-solar-faq orderby=date order=ASC numberposts=10 offset=0 class=lcp]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add spacing between list items’ is closed to new replies.
Skip to toolbar