Support » Fixing WordPress » Post Excerpt – Horizontal View – CSS?

  • Hello all,
    I currently have 2 post excerpts show on my homepage but they are stacked vertically. I want them to be side by side (left post is most recent). I have been fiddling around with the CSS but I can’t get it to show up side by side.

    Can anyone please help me?

    Thanks so much

    
    <?php
    			Include WordPress 
    			define('WP_USE_THEMES', false);
    			require('./wp-load.php');
    			query_posts('showposts=1&cat=18');
    			?>  
                <?php if ( have_posts() ): ?>
                <h1>Latest News</h1>
                <?php while ( have_posts() ) : the_post(); ?>
                <h2 style="margin-bottom:10px;"><a href="<?php esc_url( the_permalink() ); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                <p align="center"><?php the_post_thumbnail(array(480,480)); ?> </p>
                <?php the_excerpt(); ?> 
                <div style="float:none;clear:both"></div>
                <?php endwhile; ?>
                <?php else: ?>
                <h2>No posts to display</h2>
                <?php endif; ?> 
    
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Post Excerpt – Horizontal View – CSS?’ is closed to new replies.