The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

[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