I’ve put a red border round the maincontent div and yes you are correct, but as far as i can tell, the whole loop is inside that div?
index.php
<?php get_header(); ?>
<div id="maincontent">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<div class="post-title">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<div id="postheader" class="post-title"><span class="post-month"><img src="<?php echo(get_bloginfo('template_directory')); ?>/images/dateicon.jpg" width="12" height="13" /> <?php the_time('j') ?><?php the_time('S') ?></span> <span class="post-day"><?php the_time('F') ?></span>, <span class="post-year"><?php the_time('Y') ?></span> <span class="post-cat"> In <?php the_category(', ') ?></span> |
<span class="post-comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
</div>
</div>
<div class="entry">
<?php the_content('Read the rest of this entry ?'); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<span class="previous-entries"><?php next_posts_link('Older Entries') ?></span>
<span class="next-entries"><?php previous_posts_link('Newer Entries') ?></span>
</div>
<?php else : ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>