How do I place a date and share button on the same line with HTML DIV?

Kyle B

New member
I've got this code in WordPress 2.9.2:

<?php get_header(); ?>
<div class="content" id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="date"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icon-date.gif" alt="Auto Date" /> <?php the_time('l, F jS, Y') ?>
<!-- AddThis Button BEGIN -->
<?php echo "<div class=\"addthis_toolbox addthis_default_style\" addthis:url=\"".get_permalink()."\" addthis:title=\"".htmlspecialchars(get_the_title($id))."\">
<a class=\"addthis_button_twitter\"></a>
<a class=\"addthis_button_facebook\"></a>
<a class=\"addthis_button_email\"></a>
<a class=\"addthis_button_print\"></a>
</div>
<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#username=xxxxxx\"></script>"; ?>
<!-- AddThis Button END -->
</div>

But the share buttons appear below the date. Any ideas?
 
Back
Top