Ready to get started?Download WordPress


[resolved] Content Overlaps on Floated Div (4 posts)

  1. siaush
    Posted 7 years ago #

    I wrapped an image and it's caption in a div tag and floated it to the left, as you can see in the screenshot, the contents overlapped the image. However it works fine when I floated it to the right. Is there anything I can do to fix it?

    Floated DIV to the Left

    Floated DIV to the Right

    Help is much appreciated.

    Thank you,

  2. Root
    Posted 7 years ago #

    Just increase the margin-left for the post.

  3. siaush
    Posted 7 years ago #

    Resolved. Instead of doing that, I increased the margin-right for the floating div. Thanks for the help ^^

  4. Root
    Posted 7 years ago #

    Margins on floated elements can behave unpredictably. Try to get it checked on as many browsers as possible. Welcome & Good luck. :)

Topic Closed

This topic has been closed to new replies.

About this Topic