All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

[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 {

    # 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed