I am using the following CSS for a container DIV with height of html and body set to 100%, and yet it is not stretching beyond the edge of the window on this page, i.e. when scrolling up to reveal content lower down the page, the container DIV is not showing:
#container {
padding: 0;
margin: 0;
background-color: #292929;
width: 1200px;
margin: 0 auto;
min-height: 100%;
}
Could someone please let me know why this isn’t working.
Add
overflow: hiddento:That will cause
#containerto flow past the bottom of the floated elements within it that should give it it’s calculated height. Another option is to do a.clearfix.