WordPress.org

Support

Support » Themes and Templates » [Resolved] content area color extend behind bottom image

[Resolved] content area color extend behind bottom image

  • tangobango
    Member

    @tangobango

    I am new to developing wordpress themes. (I am using ths _s as the parent theme.) I am having trouble with a page that has an image at the bottom of the content area.

    The content area is styled to have a white background and the rest of the column (the primary div) is brown. I want the whole content area, including the image, to have a white background, even when there is no text below it.

    See http://petra.edkatzman.com/clearing-floats/

    Here is the code:
    http://jsfiddle.net/tangobango/fra6W/

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Christine Rondeau
    Volunteer Forum Moderator

    @crondeau

    In your css on line 99, try adding overflow:hidden…

    article.type-page, article.type-post {
    background-color: #ffffff;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
    }
    tangobango
    Member

    @tangobango

    Works. Thanks. I’ll need to read up on overflow to understand why this works. overflow:visible seems to make more intuitive sense to me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] content area color extend behind bottom image’ is closed to new replies.