JSFiddle - React, Tailwind, and code Playground
by Valentin Sarychev
HTML
<div class="wrap">
<div class="fill">
fill
</div>
<div class="flex">
<div class="item">
<div class="inline">
</div>
</div>
<div class="item">
<div class="inline">
</div>
</div>
</div>
</div>
CSS
.wrap {
display: flex;
flex-flow: column nowrap;
background: blue;
height: 100px;
}
.fill {
flex: 1;
background: yellow;
}
.flex {
columns: 2 100%;
column-gap: 0px;
}
.item:first-child {
width: 100%;
height: 40px;
background: red;
}
.item:last-child {
width: 100%;
height: 80px;
background: green;
}
.inline {
display: inline-block;
height: 100%;
width: 100%;
}