WordPress.org

Support

Support » Themes and Templates » Wrapper background not coming through

Wrapper background not coming through

  • My site is here: http://jschu.org/watson

    I have a 400px main content area and a 180px sidebar. They’re both contained in #wrap. I have the background for #wrap set to be a repeating pixel-high image. For some reason the background’s not coming through. I’ve designed a fair number of wordpress sites, but I’m tired and for some reason I can’t figure out why the background’s not working.

    Help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    you need to clear the floats of your main and sidebar before the closing div of #wrap;

    search the web for ‘clearfix’ or similar…

    adding something lke this to style.css of your theme might possibly work:
    #wrap:after{content:'.';display:block;visibility:hidden;clear:both;}

    Thanks. I guess usually I put the footer inside the wrap which takes care of the clearing. I added an empty div and it works now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrapper background not coming through’ is closed to new replies.