JSFiddle - React, Tailwind, and code Playground
HTML
<div class="outer">
<div class="fixed">
<div class="big">This is a fixed width.</div>
</div>
<div class="flex">
<div class="big">This is a flexible area.</div>
</div>
</div>
CSS
.fixed, .flex {
overflow: auto;
}
.outer {
flex: 1;
height: 100px;
display: flex;
overflow: hidden;
}
.fixed {
color: #fff;
background: repeating-linear-gradient(
45deg,
#606dbc,
#606dbc 10px,
#465298 10px,
#465298 20px
);
flex: 0 0 200px;
}
.flex {
flex: 1 1 auto;
background: #eee;
display: flex;
}
.flex .big {
flex: 1 0 500px;
}
.big {
width: 199px;
height: 200px;
}