Grow your CSS skills. Land your dream job.

[Solved] Pagewrap Background Image help!

  • # November 10, 2009 at 10:00 pm

    When I add a background image to my pagewrap it only shows up if I declare heights. I don’t want to declare heights on my pagewrap because I want everything else to fit in it.

    Here is my code:
    #pageWrap {
    background-image: url(images/pageWrapBg.jpg);
    background-repeat: repeat-x;
    margin: 0 auto;
    padding: 0;
    width: 960px;
    }

    # November 10, 2009 at 11:58 pm

    Before your page wrap div closes add this:

    <div class="clear"></div>

    Then in your CSS add this:

    .clear {
    clear:both;
    }

    # November 11, 2009 at 10:46 am

    thank you so much. It helped a lot. ;)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".