See http://jsfiddle.net/oedev/pag7ahz2/
I have the following page layout:
- cMain - main page container
- cBanner - banner container
- cNavigation - navigation container
- cContent - page content container
All these are sized at 100%, as I want the page content to be sized at 100% (apart from 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 set the height of the html, body and containing divs to 100%.
However, as I have a header logo and navbar, the div under these is not being sized at 100% (I'm ending up with a scroll bar).
If I remove the header and nav bar divs, the content div is sized @ 100% with no scroll bars.