WordPress.org

Ready to get started?Download WordPress

Forums

Space between my posts (7 posts)

  1. scleary11
    Member
    Posted 3 years ago #

    Hello, first post here so new to WordPress. This is the first time using WordPress, and it was for a university project. Here is the site:
    http://www.stephen-cleary.com/growWP/

    On the homepage there is no space between posts, how do I do this?

  2. scleary11
    Member
    Posted 3 years ago #

    I have tried sticking in .post and setting a margin/padding, but that didn't work. Any help would be really appreciated.

  3. tgiokdi
    Member
    Posted 3 years ago #

    in your style.css file, go to line 35 in the H2 section and add this:

    margin-top: 15px;

    so it looks like:

    h2 {
        font-size: 16px;
        margin-top: 15px;
        padding-bottom: 10px;
    }

    you can play around with the 15 number and get it where you want it. you can even throw in :

    border-top: 1px solid;

    to give it a nice line between each post.

  4. scleary11
    Member
    Posted 3 years ago #

    You are an absolute ledge! Ben racking my brains about this!

    Many thanks! :)

  5. tgiokdi
    Member
    Posted 3 years ago #

    you're very welcome! I suggest doing a google search for 'css margin' or 'css borders', you'll find all sorts of interesting combinations out there.

  6. scleary11
    Member
    Posted 3 years ago #

    Ok thanks for the tip. I usually have a decent understanding of padding/margin..but I think my CSS is a bit untidy here with too much needless info so I got a bit muddled as to what did what and what class and id belonged to each div!

  7. tgiokdi
    Member
    Posted 3 years ago #

    ah well, if you know what to punch in, but not where, then I suggest firebug for Firefox or Chrome by google, all you have to do is right click on the place that you're wanting to edit and it'll show you what's doing what, and you can do live (but local!) edits to see how it'll look.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.