JSFiddle - React, Tailwind, and code Playground
HTML
<div class="parent">
<div id="c1">height: 100%, margin: 10px</div>
</div>
<div class="parent">
<div id="c2">bottom: 0, margin: 10px</div>
</div>
CSS
.parent {
width: 100px;
height: 300px;
position: relative;
background: #ccc;
display: block;
float: left;
padding: 10px;
margin: 20px
}
.parent > div {
display: block;
margin: 10px;
background: red;
position: absolute;
color: white !important;
}
#c1 {
top: 0;
background-color: green;
height: 100%;
}
#c2 {
top: 0;
background-color: blue;
bottom: 0;
}