• 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)
  • 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;}

    Thread Starter jesdschup

    (@jesdschup)

    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.