• Hey guys! I’ve got a small problem and i cant get it to work.

    Here is my site: dudeins.de

    Now, first post is perfect, after that there is the pagenavigation and after that the other posts. All of the other posts show up in one big post. They dont have a seperation between them. I want the seperation so that every single post has a border on top and bottom. When you search for something there is no problem, every post has its own box.

    Here is my code for index.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter tHaDuDe

    (@thadude)

    Is this a css problem??

    heck yes…………..adjust the post spacing, borders and any other fancy stuff in css…the selector in most themes is div.post {etc}

    it is a html structure problem.

    starting here:

    <div class="entry">
    <h2 class="sectionhead">Weitere Schn?ppchen</h2>
    
    <?php if (have_posts()) : while (have_posts()) : the_post();

    the div .entry is opened just after ‘pagebar’ and only closed after the full row of posts.

    if you want to wrap each post into its own div .entry, you need to re-write the code: https://wordpress.pastebin.com/JB82AHnr

    well maybe
    but adding top margin to div.post h2 would do it………

    Thread Starter tHaDuDe

    (@thadude)

    Thank You ?? , it worked, now what do i have to add to the css to get a small space between two posts?

    glad i helped dude, a link to yr blog would let us see whats going on

    sorry
    i see it
    its standard markup

    yr posts are in div.post
    add some margin-top for them

    Thread Starter tHaDuDe

    (@thadude)

    Putting a top margin in the div class=post wont work. Any ideas?

    as you were dealing with the div .entry you probably already guessed:

    edit style.css and find:

    .entry { width: 550px; line-height:140%; padding:10px; background:#fff; border:1px solid #dadada; -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; -moz-box-shadow: 2px 2px 2px #EBEBEB; -webkit-box-shadow: 2px 2px 2px #EBEBEB; }

    add margin-bottom:10px; to it.

    Thread Starter tHaDuDe

    (@thadude)

    Thank you so much. ?? Lets see if i find something else ??

    Dang
    It’s in there somewhere lol ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Space between Posts?’ is closed to new replies.