Listing category posts horizontal (sideways)
-
My category posts go down the page, I want them to go across the page instead. https://wwsmag.com
This is the code I am using:
<tr> <td bgcolor="white"><div class="style19" id="div"> <div class="hpfeatured"> <div class="mdl"> <div class="h-wrap group"> <h2 class="h-sub2 group"> <span>THE HOT SPOT </span> </h2> </div> </div> <br/> <?php $recent = new WP_Query("cat=21&showposts=3"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?> <font color="black"><?php the_time('F jS, Y') ?></font> <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="70" border="1" style="float:left;margin:0px 10px 0px 0px;" /></a> <?php else: ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a> <?php endif; ?> <b><a href="<?php the_permalink() ?>" rel="bookmark"> <h1><?php the_title(); ?></h1></b></a> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> </div> </div></td> </tr>
How can I make the posts thumbnail image and title ONLY go across the page?
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Listing category posts horizontal (sideways)’ is closed to new replies.