Support » Themes and Templates » Ad space between to preview pictures

  • Hi everyone,

    I am having trouble adding a space between the 2 preview blog posts on my index page. Could you help me fix the code? The site is flugeule*com

    Here is the code:

    [please mark any posted code – http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    <div class="tposts">
    
    <div class="lposts_bg">
    <div class="lposts">
    								<h3><img src="<?php bloginfo('stylesheet_directory'); ?>/images/latest.png" alt="" />Aktuelle Themen</h3>
    <div class="postbg">
    									<div class="themen">
    										<ul style="list-style:none;padding:0px;margin:0px;">
    											<?
    											 $id = get_cat_id('blog');
    											 $q = "cat=" . $id;
    											 query_posts('showposts=2&'.$q);
    											 if (have_posts()) : ?>
    										<?php while (have_posts('')) : the_post();	?>
    											<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
    											<li style="floaT:left;width:490px;">
    												<? if(has_post_thumbnail()) { ?>
    													<div class="tpostbg">
    													<div class="themen_img"><a>"><img src="<?php echo $image[0]; ?>" alt="billige flüge" width="222px" height="130px"/></a></div>
    													</div>
    												<? } else { ?>
    													 
    												<? } ?>
    
    												<div class="tpost_text">
    													<h2><?php the_title(); ?></h2>
    													<div class="b_logtext">
    													  <?ob_start();
    														the_content('Read the full post',true);
    														$postOutput = ob_get_contents();
    														ob_end_clean();
    														echo substr($postOutput,0,140);
    													  ?>
    													</div>
    
    												</div>
    
    											<?php endwhile; endif; wp_reset_query();?>
    
    									</div>
    
    								</div>
    							</div>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Ad space between to preview pictures’ is closed to new replies.