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. I created a class in css called blank5 => .blank5 {height:5px;} but it doesn't seem to work. I know I am missing something regarding the while loop. Not sure where to tell it to break the post.

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;?>
</div>

Please help. Thanks in advance.

included another div and set a margin top to 5px.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.