wordpress - put query_posts in 3 columns layout css -


hi im trying put query_posts list in 3 columns layout...

    <div id=”main”>     <div id=”sinistra”>     </div>     <div id=”centro”>     </div> </div> <div id=”destra”> </div>      <ul>     <ul id="main">     <style type="text/css">       #main { list-style:none; width:900px; }     #main li { overflow:auto; margin:10px 0px; border-bottom:1px solid #e6e6e6; padding-bottom:0px; padding-top:0px; padding-left:0px; padding-right:0px; }     #main li img { float:left; margin-right:5px; border:4px solid #eeeeee;}     #main li { text-decoration:none; font-weight:bold; color:#1e292b;}      #main li p { margin-top:30px; }     #main li {float:left;width:900px}     #sinistra li {float:left;width:900px}     #centro li {float:right;width:600px}     #destra li {float:right;width:300px}     </style>     <?php     query_posts( "orderby=&order=desc&cat=28& posts_per_page=12" );         if (have_posts()) : while (have_posts()) : the_post(); ?>     <li>     <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(90,120)); ?></a>     <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><br>     <p>blablaprova</p>     </li>         <?php         endwhile; endif;          wp_reset_query();     ?>     </ul> 

i need css have 12 post of same category divided 4|4|4 ordered last edit


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -