JSFiddle - React, Tailwind, and code Playground
by Justin Breen
HTML
<div class="flex">
<div class="flex-item">
<div class="element">
The orange element should be as tall as the blue element
</div>
</div>
</div>
CSS
.flex {
height: 100px;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: column;
flex-flow: column;
}
.flex-item {
background-color: steelblue;
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
display: flex;
}
.element {
background-color: orange;
flex: 1 1 100%;
}