JSFiddle - React, Tailwind, and code Playground

by spade man

HTML

<div class='box'><div class='left'>111</div> <div class='right'>222</div></div>

CSS

.box{
 width: 400px;
 height: 100px;
 display: flex;
 flex-direction: row;
 align-items: center;
 border: 1px solid #c3c3c3;
}
.left {
 flex-basis:100px;
 -webkit-flex-basis: 100px; /* Safari 6.1+ */
 background-color: red;
 height: 100%;
 
}
.right {
 background-color: blue;
 flex-grow: 1;
}