Check out http://jsfiddle.net/oedev/pag7ahz2/
This is the layout of my page:
- cMain - main container for the page
- cBanner - container for the banner
- cNavigation - container for navigation
- cContent - container for page content
All these containers are set at a size of 100%, except for the banner.
html, body {
height: 100%;
}
#cMain {
height: 100%;
}
#cBanner {
background: #002d62 top center no-repeat scroll;
height: 200px;
margin-bottom: 1em;
margin-top: 1em;
}
#cContent {
height: 100%
}
I have specified the height of the html, body, and divs to be 100%.
However, due to having a header logo and navbar, the div below them is not being stretched to 100% (resulting in a scrollbar).
If I remove the header and navbar divs, the content div stretches to 100% without any scrollbars.