Forums

Blog post Image breaking layout (4 posts)

  1. livewirerules
    Member
    Posted 2 years ago #

    When i add a image to my blog post and align it to left or right, it breaks the layout and the image pops into the next post.
    checkout the image below..

    http://i48.tinypic.com/10frkuu.jpg

    I need the image to stick into post without making image more smaller?

    Thanks

  2. Edward Caissie
    Member
    Posted 2 years ago #

    It appears you image is being "floated" to the left (or right, as the case may be) which is a common CSS style in themes.

    A possible fix is to put a "clear:both" div just before the end of the_loop.

  3. livewirerules
    Member
    Posted 2 years ago #

    Can you explain a bit how to do it?

    Thanks

  4. Edward Caissie
    Member
    Posted 2 years ago #

    <div style="clear:both"></div>

    Add the above code into the_Loop (using the example from the above link) just before this bit of code:

    <?php endwhile; else: ?>

    ... in your theme's index.php template file.

Topic Closed

This topic has been closed to new replies.

About this Topic