Title: Spacing inline posts
Last modified: August 19, 2016

---

# Spacing inline posts

 *  [samferguson](https://wordpress.org/support/users/samferguson/)
 * (@samferguson)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/spacing-inline-posts/)
 * I have a ‘Featured Posts’ section on my homepage, using a loop which pulls three
   posts from the’Featured’ category and displays them inline.
    I want to space 
   out the three posts accross the width of the page. Here is an image to show what
   I want [Image](http://www.samferguson.co.uk/images/problem.jpg) Is there any 
   easy way to do this? Here is my code for the loop.
 * <?php $my_query = new WP_Query(‘category_name=Featured&showpost=3’);
    while (
   $my_query->have_posts()): $my_query->the_post(); $thumb = get_post_meta($post-
   >ID, ‘thumb-small’, true);?> <div class=”feature”> <*a>”><img src=”<?php echo
   $thumb; ?>” alt=”<?php the_title() ?>” /> <h2>“><?php the_title() ?></h2> </div
   > <?php endwhile; ?>
 * So i basically want the first and second posts to have a right margin but not
   the third, no matter which posts are featured.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [samferguson](https://wordpress.org/support/users/samferguson/)
 * (@samferguson)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/spacing-inline-posts/#post-1774514)
 * Anyone?

Viewing 1 replies (of 1 total)

The topic ‘Spacing inline posts’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [samferguson](https://wordpress.org/support/users/samferguson/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/spacing-inline-posts/#post-1774514)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
