Layout issues, not sure what's causing the problem
The page in question is here: http://www.audio-agent.com/wordpress/clients.
As you can see, the last post is indented instead of staying aligned to the left, as if there's an invisible post in the way. I've looked through with Firebug and can't seem to find anything taking up the space. The PHP used to generate this section of the page is as follows:
<div class="post-wrapper">
<?php query_posts('showposts=100&category_name=Clients&order=asc&orderby=title'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post_box">
<div id="post-<?php the_ID(); ?>">
<h4 class="hidden"><?php the_title(); ?></h4>
<img src="<?php echo get_post_meta($post->ID, 'brand_img', true); ?>" />
<?php the_content()?>
</div><!--post-->
</div><!--post_box-->
<?php endwhile;?>
<?php wp_reset_query(); ?>
</div><!--post-wrapper-->开发者_运维问答;
Thanks for any help!
If you put a
<div style="clear:both;"></div>
before the last , it lines up properly.
I would say that since that last box is being pushed to the middle, that there are some little tweaks to the spacing you need to make for the boxes on the right.
However, the clear will fix your problem immediately.
精彩评论