Title: Only two first posts look good.
Last modified: August 19, 2016

---

# Only two first posts look good.

 *  [rics23](https://wordpress.org/support/users/rics23/)
 * (@rics23)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/only-two-first-posts-look-good/)
 * I have links to display posts of certain categories.
    On these pages, the first
   two posts look good, meaning they align as I wanted in the CSS and so on, and
   then all the posts thereafter are ignoring my margins! very frustrating. have
   a look at viennapitts.com
 * here is my main index template code
 * <?php
    /** * [@package](https://wordpress.org/support/users/package/) WordPress*
   @subpackage Classic_Theme */ get_header(); ?>
 * <div>
    <document.bgColor=”#000000″>
 * <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div style=”
   width: 680px;”><?php the_date(‘Y-m-d’, ‘<h2>’, ‘</h2>’); ?> </div>
 * <div <?php post_class() ?> id=”post-<?php the_ID(); ?>” style=”width: 680px;”
   >
 * </h3>
    <?php edit_post_link(__(‘Edit This’)); ?></div>
 *  <div class=”storycontent” style=”width: 680px;”>
    <?php the_content(__(‘(more…)’));?
   > </div>
 * </div>
    </div>
 * <?php comments_template(); // Get wp-comments.php template ?>
 * <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’);?
   ></p> <?php endif; ?>
 * <?php posts_nav_link(‘ — ‘, __(‘« <<‘), __(‘>> »’)); ?>
 * <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Dennis27](https://wordpress.org/support/users/dennis27/)
 * (@dennis27)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/only-two-first-posts-look-good/#post-1641946)
 * I think you have change the way the post that are been blocked i.e., from your
   third post.
    Make changes to code area of h3 class tag in a way that bookmark
   content that display will automatically changes.
 * ————————-
 * [bespoke ecommerce](http://www.dotcommerce.co.uk/bespoke_ecommerce_services/default.aspx)
 *  Thread Starter [rics23](https://wordpress.org/support/users/rics23/)
 * (@rics23)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/only-two-first-posts-look-good/#post-1642114)
 * Im sorry, I don’t understand your reply, are you using an online translator by
   any chance?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Only two first posts look good.’ is closed to new replies.

## Tags

 * [align](https://wordpress.org/support/topic-tag/align/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [two](https://wordpress.org/support/topic-tag/two/)
 * [weird](https://wordpress.org/support/topic-tag/weird/)

 * 2 replies
 * 2 participants
 * Last reply from: [rics23](https://wordpress.org/support/users/rics23/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/only-two-first-posts-look-good/#post-1642114)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
