• Hi there, I’m wanting to put like a 70% width horizontal line as a separator between the posts on my home page. How do I do that?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    There’s actually already a line there inserted after every post. But it’s only 1px thick, light grey, and flush with the top edge of the next post’s featured image. If you scroll down the front page, you’ll see it below the very last post.

    This CSS pushes the next post down a bit so the line is equally far from the post above and below it, turns it black, makes it only 70% of the width, and makes it 2px thick – if you want to keep it at 1px, just remove the height line from the code:

    .hentry {
      padding-bottom: 48px;
    }
    .hentry:after {
      background-color: black;
      width: 70%;
      left: 15%;
      top: 0;
      height: 2px;
    }
    Thread Starter ntorzsa

    (@ntorzsa)

    Thank you so much that’s perfect!

    Happy to help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Separator between blog posts’ is closed to new replies.