I want my textarea within the wrapctxt
container to always fill up the remaining space below the wrapctop
section, reaching the bottom of the wrapc
element.
.panelb{
display:grid;
grid-template-columns: 130px 34% auto;
height:100vh;
width:100%;
}
.wrapa{
background:gold;
}
.wrapb{
background:silver;
}
.wrapc{
background:lightseagreen;
}
.wrapctop{
background:lightblue;
padding:9px;
}
.wrapctxt{
display:block;
width:100%;
background:gold;
padding:0;
outline:none;
border:none;
}
<div class='panelb'>
<div class='wrapa'>wrapa</div>
<div class='wrapb'>wrapb</div>
<div class='wrapc'>
<div class='wrapctop'>wrapctop</div>
<textarea class='wrapctxt'></textarea>
</div>
</div>
The content inside wrapctop
can vary in length, so its height is unpredictable. How can I ensure that the wrapctxt
adjusts perfectly?