Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Problem with 100% height div

Options
  • 10-04-2011 3:28pm
    #1
    Closed Accounts Posts: 1,419 ✭✭✭


    Hi, I'm going nuts.
    I want a wrapper div to display 100% of the page height no matter what the size of the content of that wrapper.:confused:
    Here's my CSS code:

    #wrapper {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: .8em;
    color: #666666;
    width: 760px;
    margin-right: auto;
    margin-left: auto;
    background-color: #CCCCCC;
    position: relative;
    min-height: 100%;
    }

    html, body {

    height: 100%;

    }

    All of the divs contained inside the wrapper div are set to absolute.
    Any help at all would be much appreciated.


Comments

Advertisement