JSFiddle - React, Tailwind, and code Playground

by Jonas Tang

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-flow: row;
}
.flex-item {
    background-color: steelblue;
    flex: 1 1 100%;
    display:flex;
}
.element {
    background-color: orange;
    flex: 1 1 100%;
}