I need to make the child height relative to the viewport. Using HTML:
<div class="parent">My divider
<div class="child">
Inside the div
</div>
</div>
and CSS:
.t1 {
background:#f00;
color:#fff;
}
.t2 {
background:#212121;
height:100vh;
}
http://jsfiddle.net/hr8sL/7646/
As you can see from the example, There's always this small gap, because it takes into account the overall height of the parent. However, I only need the child to fill "the rest" of the viewport from parent.
How should I proceed? I've tried many other things, but without sufficient result