JSFiddle - React, Tailwind, and code Playground

by Daniel Tan

HTML

<div class="table">
    <span class="cell-1">1</span>
    <span class="cell-2">2</span>
</div>

CSS

.table {
    display: table;
}

.cell-1, .cell-2 {
    display: table-cell;
    padding: 0;
    border: 1px solid #ccc;
}

.cell-1 {
    background-color: #eee;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    width: 1%;
}

.cell-2 {
    border-radius: 0 4px 4px 0;
    width: 100%;
}