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.

    http://www.theciphergroup.net

    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: http://css-tricks.com/snippets/css/clear-fix/
    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.

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