JSFiddle - React, Tailwind, and code Playground
by bjelline
HTML
<div class="row">
<div class="fixed">Fixed Size</div>
<div class="grow">
this text is very very long and it goes on and on and on and on but does
not wrap
</div>
<div>
short
</div>
<div>
one more tab
<div>
another tab
</div>
</div>
CSS
div.row {
}
div.row > div {
float:left;
margin-right: 10px;
display: block;
background-color: red;
min-width: 10px;
width: 100px;
height: 18px;
}
div.row > div.grow{
min-width: 10px;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
div.row > div.fixed {
width: 100px;
min-width: 100px;
}