Title: Posts are falling outside div
Last modified: August 19, 2016

---

# Posts are falling outside div

 *  Resolved [rhino18](https://wordpress.org/support/users/rhino18/)
 * (@rhino18)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/posts-are-falling-outside-div/)
 * I have been having a problem with my blog posts.
 * On my page of posts, the first post is within a div that applies important styles.
   All proceeding posts are outside this div. Within the template itself, it shows
   what I believe are the posts being within this div. However, for some reason 
   the following ones are showing up outside of it.
 * Here is what the code looks like, let me know if more information is required:
 * ———————-
 *     ```
       <div id="content" class="narrowcolumn">
   
       	<?php if (have_posts()) : ?>
   
       		<?php while (have_posts()) : the_post(); ?>
   
       			<div class="post" id="post-<?php the_ID(); ?>">
       				<h7><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h7>
       				<br /><small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
   
       				<div class="entry">
       					<?php the_content('Read the rest of this entry &raquo;'); ?>
       				</div>
   
       				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
       			</div>
   
       		      <?php wp_link_pages();?>
   
         	</div>                  <!-- end the post div-->
       	<?php endwhile; ?>
   
       	<?php else : ?>
   
       		<h2 class="center">Not Found</h2>
       		<p class="center">Sorry, but you are looking for something that isn't here.</p>
       		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
           <div class="navigation"><?php posts_nav_link();?></div>
       	<?php endif; ?>
   
           </div> <!-- end content div-->
       ```
   
 * Thank you for any assistance.

Viewing 1 replies (of 1 total)

 *  Thread Starter [rhino18](https://wordpress.org/support/users/rhino18/)
 * (@rhino18)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/posts-are-falling-outside-div/#post-932377)
 * Problem solved; there was an unnecessary /div.

Viewing 1 replies (of 1 total)

The topic ‘Posts are falling outside div’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [rhino18](https://wordpress.org/support/users/rhino18/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/posts-are-falling-outside-div/#post-932377)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
