Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS What should be the proper height of wrapper

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23543
    Maya
    Member

    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.

    #50951
    Jonz
    Member

    html, body and the wrapper’s height needs to be 100%:

    Code:
    html {
    height: 100%;
    }
    body {
    background-color: #000000;
    margin: 0;
    height: 100%;
    }
    #wrapper {
    width: 960px;
    margin: 0 auto;
    height: 100%;
    background-color: #1F669A;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.