JSFiddle - React, Tailwind, and code Playground

by OliverJAsh2

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: flex;
    flex-direction: column;
}
.flex-item {
    background-color: steelblue;
    flex-grow: 1;
}
.element {
    height: 100%;
    background-color: orange;
}