Treehouse: Grow your CSS skills. Land your dream job.

Getting Background and Borders to extend to page width

  • # April 21, 2010 at 5:09 pm


    I am pretty new to CSS, and I am trying to fix a site for a friend. Another guy started building the site, and he flaked out on it. So I am just trying to get him going again.

    The site is [url]http:www//[/url]. I would like to extend the background color of the header section across the entire screen on bigger monitors. I would also like for the borders to go with.

    For some reason it is working in the footer, but I can’t figure out why. Can you help me?


    # April 21, 2010 at 5:56 pm

    The #footer is outside the #pagewrap so it is not limited to 960px width. So you will need to do the same for the header section.

    # April 22, 2010 at 10:26 am

    Thanks. I found an extra </div> that was closing it too early for me. I got it fixed.

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

You must be logged in to reply to this topic.