WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. siaush
    Member
    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,
    Shihao.

  2. Root
    Member
    Posted 7 years ago #

    Just increase the margin-left for the post.

  3. siaush
    Member
    Posted 7 years ago #

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

  4. Root
    Member
    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