Родительский блок .wrapper
имеет высоту 100%. Высота дочернего блока .info
не определена и может отличаться. Как растянуть дочерний блок .wrp
на всю оставшуюся высоту родительского блока .wrapper
?
Ассоциация: https://ru.stackoverflow.com
Любые другие варианты?
body,
html {
height: 100%;
margin: 0;
padding: 0;
}
div {
margin: 0;
padding: 0;
}
.wrapper {
display: block;
overflow: hidden;
height: 100%;
width: 100%;
background-color: silver;
}
.wrp {
display: block;
width: 100%;
height: 100%;
background-color: chocolate;
}
.info {
display: block;
width: 100%;
background-color: blue;
}
<div class="wrapper">
<div class="wrp"></div>
<div class="info">Did you see the virgin on the rock <br>in a white robe over the waves<br>When, raging in the stormy darkness, <br>the sea Played with the shores,<br>When a ray of lightning lit up<br>Her hourly brilliance with scarlet <br>and the wind beat and flew<br>With her flying veil?</div>
</div>