Emergency! Layout messed up.
-
hey people,
i have an emergency case here. we have a site that’s updated regularly because it’s an ongoing event for the next three weeks. But the layout is suddenly making kind of weird stuff and I can’t figure out why.
We are using our own theme. LINK. If you scroll down the first site, you already can see the problem. After the second posts, all posts are outside of the content div.
In a shortversion the indexfile looks like this.
<div id="cont" class="top29"> <div class="postarea"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="conthead"> <div class="txthead"> <?php the_title(); ?> </div> <div>------------------------------------------------</div> </div> <div id="contbody" style="text-align:justify;"> <?php the_content('mais...'); ?> ------------------------------------------------ </div> </div> <?php endwhile; else: ?> <?php _e('Sorry, no posts matched your criteria.'); ?> <?php endif; ?> <?php posts_nav_link(' — ', __('« Older Posts'), __('Newer Posts »')); ?> </div> <!-- close cont -->
The CSS class mentioned in the index files are here:
body { background-color: #fff; font-family: 'CourierNewPSMT', 'Courier New', 'monospace'; font-size: 11px; margin-top: 0px; line-height: 16px; } #main { position: relative; width: 570px; vertical-align: top; margin-top: 20px; margin-left: auto; margin-right: auto; } #cont { position: relative; float: left; margin-left: 35px; vertical-align: top; width: 336px; padding-bottom: 40px; } .top29 { margin-top: 29px; } .postarea { margin-bottom: 25px; } #conthead { position: relative; } #contbody { position: relative; line-height: 14px; margin-top: -3px; } .txthead { font-weight: bold; font-size: 12px; text-align: bottom; padding-top: 7px; }
My CSS-skills are basic, PHP-skills non existent.
During debugging i saw that he just puts the first two posts into the “cont”-div. no matter how those first two or the last ones look like.
I’m so clueless and a little bit in panic because the site has a very high visitor frequency during our event and it looks like shi*! i just made the update to 2.5 – but i don’t think that’s the problem. has anybody an idea????
thanks in advance.
karina
- The topic ‘Emergency! Layout messed up.’ is closed to new replies.