css geniuses

Out of context: Reply #4

  • Started
  • Last post
  • 7 Responses
  • ********
    0

    To get the text to display on the homepage only, you can add a min-height to that element. So:

    #maincontainer {
    /*display: none;*/
    margin: 0 0 35px 0;
    width: 705px;
    background: url(http://www.sharieaton.com/cc... no-repeat;
    min-height: 291px;
    border-bottom: 2px #ebebeb solid;
    }

    .entry {
    background:#FFF;
    }

    That way the div with the image background will always be at least 291px high, but will also expand to the height of the content inside it.

View thread