JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container clearfix">
<div class="element">
1
</div>
<div class="element">
2
</div>
<div class="element">
3
</div>
<div class="element">
<div class="stretch-element">
<div class="table-cell">
Бо ширине
</div>
</div>
</div>
</div>
CSS
.clearfix:before,
.clearfix:after {
content: " 123";
display: table;
}
.clearfix:after {
clear: both;
}
.container {
position: relative;
background: #ddd;
border: 1px solid #999;
overflow: hidden;
}
.element {
float: left;
margin-right: 0px;
min-width: 10px;
max-width: 100px;
height: 40px;
background: #eee;
border-right:1px solid red;
padding:20px 0;
}
.stretch-element {
position: absolute;
height: 40px;
background: #eee;
overflow: hidden;
}
.table-cell {
display: table-cell;
width: 1%;
}