I'm working on wordpress query_posts. I want to show 12 posts on the index page,3 items in a row. So I want to have a "clear:both" css on the first item of each row. How can I do that please?
<?php query_posts(array('showposts' => 9, 'post_parent' => $post->ID, 'post_type' => 'page', 'order' => 'ASC')); ?> <div> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div> <!-- clear class on each 4th item --> <h2><?php the_title(); ?></h2> <?php the_content(); ?> </div> <?php endif; ?> </div> <?php wp_reset_query(); ?>