I am trying to create the box where the content would always take the 100% height to the bottom(minus the padding), even if it is resized and has small content. I got stuck with ideas… grateful for all suggestions!
Here's a pen as well: https://codepen.io/Dalmat/pen/VOmxzm
.box {
background: lightblue;
width: 200px;
min-height: 100px;
padding: 10px;
text-align: center;
overflow: auto;
resize: both;
}
.box_bottom {
background: darkblue;
color: white;
}
<div class="box">
<div class="box_top">
Title
</div>
<div class="box_bottom">
Content
</div>
</div>