WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image float breaks out of post (5 posts)

  1. MarcoMicale
    Member
    Posted 5 years ago #

    why and how do I avoid this?

    please

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    1. Validate your theme/site.

    2. Edit style.css (line 51)

    #footer {
    border-bottom:10px solid #D7F0B2;
    border-top:1px solid #BCE77C;
    color:#999999;
    margin:0;
    padding:10px 20px 20px;
    text-align:right;
    }

    and add clear:both;.

  3. MarcoMicale
    Member
    Posted 5 years ago #

    1000 thanks

  4. MarcoMicale
    Member
    Posted 5 years ago #

    might explain core avoiding the image that comes out of the div "art"?
    because it can not stay inside

  5. esmi
    Forum Moderator
    Posted 5 years ago #

    The problem was that you hadn't issued a "clear everything" to the footer, so it assumed that it was still to contain the image and float it. The "clear:both" forces the footer to dropdown below the last floated block.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags