How do I get my post boxes a consistant size?
-
Hello,
My url=https://designsbyjot.com
I will quote my loop code down below.
If you check out my site I finally got a lot of the bugs out but my boxes are not the same size for each post. This sometimes forces one of the posts down causing a large space on the left second row from top. Plz help!
<div class=”content”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><div class=”Post” style=”width:47.55%;float:left;”><div class=”Post-tl”></div><div class=”Post-tr”><div></div></div><div class=”Post-bl”><div></div></div><div class=”Post-br”><div></div></div><div class=”Post-tc”><div></div></div><div class=”Post-bc”><div></div></div><div class=”Post-cl”><div></div></div><div class=”Post-cr”><div></div></div><div class=”Post-cc”></div><div class=”Post-body”><div class=”Post-inner”>
<h2 class=”PostHeaderIcon-wrapper”><img src=”<?php bloginfo(‘template_url’); ?>/images/PostHeaderIcon.png” width=”24″ height=”24″ alt=”PostHeaderIcon”/> ” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2><?php if (!is_page()): ?>
<?php endif; ?>
<div class=”PostContent”>
<div style=”height:100px;overflow:hidden;”>
<?php $image = get_post_meta($post->ID, ‘img’, true);
if ($image == ”) : ?>
<?php else : ?>
” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”>
<img class=”alignleft” style=”margin-right:2px;” width=”80px” height=”80px” src=”<?php echo $image; ?>” alt=”<?php the_title_attribute(); ?>” />
<?php endif; ?>
<!– <?php the_content(‘Read the rest of this entry »’); ?> –><?php
$excerpt = get_the_excerpt();
echo string_limit_words($excerpt,30) . “…”;
?>thx
- The topic ‘How do I get my post boxes a consistant size?’ is closed to new replies.