I am using the twitter bootstrap "sticky footer" example code.
The sticky footer works fine, but now I want to "fill" the remaining space by making the body (or a div) take up the height of html
element and then apply 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;
}
Here is a working demo - http://jsbin.com/xurulofame/1/edit?html,css,output
How can I make the BODY element take up 100% height of the HTML element - and therefore fill the background with the "tomato" color?