• livewirerules

    (@livewirerules)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter livewirerules

    (@livewirerules)

    Can you explain a bit how to do it?

    Thanks

    <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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Blog post Image breaking layout’ is closed to new replies.