Left aligned image spilling over container div
-
Hi, I’m new to the WordPress system…just got it up and running on my system and have modified a theme to make it look like my site.
However, I’m running into an issue that I’m hoping someone with a little more CSS knowledge can help me out with.
My post structure looks like this:<div class=”post”>
<div class=”front”>Header stuff</div>
<div class=”entry”>Post text</div>
</div>For the most part everything looks fine. However, I just tried putting a small image in one of my posts. I aligned it left so that the text would wrap around the image. In this particular case, my text was shorter than the image was tall. The result of this was my containing div — the entry and post (post has a border) sized only to my text and not the image. This caused the image to spill out of the containing <div>s and messed the layout of the following post.
I was able to fix it by using a style of float: left and then ending my text with a <br style=”clear:left”>. But I’d rather not have to do this.
Is there anything that I can do to the style of my post and/or entry classes to prevent this from happening?
Thanks.
- The topic ‘Left aligned image spilling over container div’ is closed to new replies.