• HI,

    Please look at my site at https://www.lancesview.com
    On the right sidebar I have a standard text widget for Recent Posts that I took from WordPress default widgets.
    How do I space out the links to the recent posts in the widget so that there is a clear separation between all of them. Right now they seem to run together.

    Thanks

    Lance

    [title moderated all caps is considered YELLING]

Viewing 6 replies - 1 through 6 (of 6 total)
  • in your stylesheet add the following:-

    #right #recent-posts-3 ul li { margin-bottom:10px; }

    you can play around with the amount to suit.

    dave.

    Thread Starter lance007

    (@lance007)

    Thanks Dave,
    Where in the stylesheet do I add it?
    What does the “3 ul li” mean?

    thanks

    Lance

    you can add it to anywhere in the stylesheet but at the bottom is probably best.

    the #’s refer to containing divs of the unordered lists. the ul li refers to the unordered list (aka bullet points) which the recent posts us. so this code targets the recent posts list to add the margin to.

    for more information check out:-
    https://www.w3.org/ – for full documentation
    https://www.w3schools.com/, https://htmldog.com/ for an introduction to html/css

    Thread Starter lance007

    (@lance007)

    Thanks a lot Dave

    Thread Starter lance007

    (@lance007)

    Hi again Dave,

    Just wondering. Is there a way to alternate the text or background color of each post in the “recent post” widget on the right sidebar to distinguish the posts even further?

    thanks

    Lance

    Thread Starter lance007

    (@lance007)

    I tried adding the code you gave me to the style sheet and it didn’t do anything.
    I’m using the Atahualpa theme that has a lot of options and areas to fill in styling code for the various areas of the blog.
    For example there are options to fill in code in:
    “Body style, Text & Links”
    “Style and Configure Sidebars” -> “Right Sidebar style”
    “Style Widgets” -> “Widget content Box”

    I tried a few of them and when that didn’t work I just went to “editor” for the style.css file. still didn’t work.
    Any other suggestions?

    or should the code go into the “css.php” file?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do you add a spabe between lines in recent post text widget’ is closed to new replies.