Forums

Space between Posts? (12 posts)

  1. tHaDuDe
    Member
    Posted 1 year ago #

    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]

  2. tHaDuDe
    Member
    Posted 1 year ago #

    Is this a css problem??

  3. Root
    Member
    Posted 1 year ago #

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

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    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: http://wordpress.pastebin.com/JB82AHnr

  5. Root
    Member
    Posted 1 year ago #

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

  6. tHaDuDe
    Member
    Posted 1 year ago #

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

  7. Root
    Member
    Posted 1 year ago #

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

  8. Root
    Member
    Posted 1 year ago #

    sorry
    i see it
    its standard markup

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

  9. tHaDuDe
    Member
    Posted 1 year ago #

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

  10. alchymyth
    The Sweeper
    Posted 1 year ago #

    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.

  11. tHaDuDe
    Member
    Posted 1 year ago #

    Thank you so much. :) Lets see if i find something else :P

  12. Root
    Member
    Posted 1 year ago #

    Dang
    It's in there somewhere lol ;)

Topic Closed

This topic has been closed to new replies.

About this Topic