0

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.

1
Contributor
1
Reply
9
Views
3 Years
Discussion Span
Last Post by boney
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.