JSFiddle - React, Tailwind, and code Playground
by David Thomas
HTML
<div id="parent">
<div id="one">The first div, fixed width</div>
<div id="two">The second, taking up the rest of the space.</div>
</div>
CSS
#parent {
width: 90%;
padding: 10px;
background-color: #ffa;
overflow: hidden;
}
#one {
float: left;
width: 100px;
background-color: red;
}
#two {
background-color: #f90;
}