You should set 100% height for the body and it should do:
body {
...
height:100%;
...
}
Try (it should work in most browsers):
.100PercentHeight, html, body {
height : auto !important; /* Ignored by Internet Explorer, applied everywhere else. */
height : 100%; /* Internet Explorer treats as min-height. */
min-height : 100%; /* Internet Explorer ignores this. */
}
This should work:
<style type="text/css">
html, body, .100PercentHeight {
height: 100%;
margin: -10px 0px 0px -10px;
}
</style>
However, you may want to add a background colour or border to make sure it works, else you won't be able to see it properly.
Use:
{
position: absolute;
top: 0px;
bottom: 0px;
padding: 0px;
margin: 0px;
}
This way, it will be centered and cover the page if it is longer than one browser view long.