Support » Fixing WordPress » Break after each post.

  • Hello,

    I have created my own template and am able to list all the posts on the index page.

    I want to be able to have some space after each post. LIke a blank height of 5px. Also, say after 5 posts, i want to have a static post/div and continue to show remaining posts after that div. I created a class in css called blank5 => .blank5 {height:5px;} but it doesn’t seem to work.

    My index.php :

    <div id="theposts">
    <?php while(have_posts()):the_post();?>
      <h2> <a>"><?php the_title()?> </a> </h2>
    	<?php the_content(__('Continue Reading'));?>
    <div class="blank5"> </div>
    <?php endwhile;?>

    Please help. Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Please post the page url to enable remote debugging with developer tools. Meanwhile, try setting property “min-height” instead of “height”.

    Thank you for your reply. Its on a localhost so i cannot post the url.

    I have a static background image and would like a gap of 5px after each post and the gap needs to be transparent. I added the following in the css and it works, but i want that to be transparent.

    .blank5 {height:5px; background-color:blue;}

    Note that I only want a height of 5px after the post and no height for the post.

    Any help appreciated. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Break after each post.’ is closed to new replies.