WordPress.org

Ready to get started?Download WordPress

Forums

Wrapper background not coming through (3 posts)

  1. jesdschup
    Member
    Posted 3 years ago #

    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?

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

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

  3. jesdschup
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags