I am trying to recreate the answer to this question: CSS Sticky Footers with Unknown Height
So basically i want a sticky footer which has the ability to change it's height (dynamic). So I do not know the height.
Here is the codepen: http://codepen.io/basickarl/pen/ZQXJdQ?editors=110
i can't seem to get it to work.
html:
<div class="wrapper">
<div class="div1">
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
hello<br>
</div>
<div class="div2">
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
roger<br>
</div>
</div>
css:
html, body {height: 100%;}
.wrapper {
display: table;
width: 100%;
height: 100%;
}
.div1 {
display: table-row;
height: auto;
}
.div2 {
display: table-row;
background: red;
}