JSFiddle - React, Tailwind, and code Playground
HTML
<div id="a">
<div id="b">fgs</div>
<div id="c">gsg</div>
</div>
CSS
#a {
margin: 0 auto;
width: 10em;
height: 30em;
background: red;
}
#b {
float: left;
background: #ccc;
width: 100%;
min-height: 4em;
}
#c {
background: #999;
height: 100%;
}