JSFiddle - React, Tailwind, and code Playground

by gbos

HTML

<div class="parent">
    <div class="child child1">aa<br>cc</div>
    <div class="child child2">bb</div>
</div>

CSS

html,body {
    margin: 0;
    padding: 0;
}

.parent {
    display: flex;
}

.child {
    flex: 1;
    background-color: lightgrey;
    padding: 10px;
    text-align: center;
}

.child2 {
    background-color: yellow;
    flex: 0 0 20%;
}

Babel + JSX

const a = <p></p>;