Currently, I have implemented the sticky footer example code from Twitter Bootstrap. The sticky footer is functioning correctly, but my goal now is to extend the body (or a div) to occupy the remaining space by matching the height of the html
element and applying a background color.
HTML
<body>
<p>....</p>
<footer class="footer">
<div class="container">
<p>Place sticky footer content here.</p>
</div>
</footer>
</body>
CSS
html {
position: relative;
min-height: 100%;
background-color: green;
/* background-color: transparent; */
border: 3px solid blue;
}
body {
background-color: tomato;
padding-top: 20px;
border: 3px solid black;
min-height: 100%;
}
.footer {
position: absolute;
bottom: 0px;
width: 100%;
height: 60px;
background-color: #0bb;
}
To view a working demo, visit http://jsbin.com/xurulofame/1/edit?html,css,output.
I am seeking guidance on how to adjust the BODY element to fill 100% of the HTML element's height in order to show the background color "tomato".