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

Help with Page Wrap

  • # August 3, 2011 at 3:23 am

    Can anyone help me out with the page-wrap div for this website?
    I need to set it around all the content in the middle of the page, so I can set a color background.

    Thank you!

    # August 3, 2011 at 10:21 am

    Give your page-wrap overflow:hidden; and a background color and you’ll see it show up.

    # August 3, 2011 at 2:07 pm

    The problem you’re having is because parent elements doesn’t expand to fit child elements, if those child elements are floated.
    Try applying a class for clearfix to the wrapper:
    Doing so will make the page wrapper expand all the way to fit children, floated elements.

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

You must be logged in to reply to this topic.