treehouse : what would you like to learn today?
Web Design Web Development iOS Development

What should be the proper height of wrapper

  • Hi I want my webpage to fit exactly in the browser window. I have decided that the width to do that should be 960px. But I am not sure of the height. Please give me some hint as to what should be the height of the page for the purpose.

    Thank you for your time.
  • html, body and the wrapper's height needs to be 100%:

    html {
    height: 100%;
    }
    body {
    background-color: #000000;
    margin: 0;
    height: 100%;
    }
    #wrapper {
    width: 960px;
    margin: 0 auto;
    height: 100%;
    background-color: #1F669A;
    }