Support » Themes and Templates » Urgent help!! styling posts

  • i have a problem with the style of a post
    i want to make the thumbnails to the left and the content to the right withouth having the text going under the image, but cant manage to put the divs in a right manner to do that. I am using this code to call the post from a certain category:

    <?php the_ttftext("Calendario"); ?>
    <h2>Entorno Cafetto</h2>
    <?php $recent = new WP_Query(); ?>
    <?php $recent->query('cat=6&showposts=50'); ?>
    <?php while($recent->have_posts()) : $recent->the_post(); ?>
    <?php the_post_thumbnail(array( 120,120 )); ?>
    <div class="calendario">
             <h4> <?php the_title(); ?></h4>
    <?php the_content('more_link_text', strip_teaser, 'more_file'); ?><?php endwhile; ?>

    and the css related to it:

    .wp-post-image  {
    float: left;
    border: 5px solid white;
    .calendario {

    i knnow i am probably doing it all bad, but dont know how to do it! I am new to coding wordpress, please help!!

    The page in question is this:

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi llanquin
    Have a look in firebug, you have problem with a missing div, the post image is in the <div class=”calendario”>

    my problem is that i dont know how to put the divs to make the order, because when i use the calendario div, it seems that the post beloew get into that div, including the image 🙁

    with your code I don’t know either. Try to not use table layout instead and put the post thumbnail in an other div

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Urgent help!! styling posts’ is closed to new replies.