JSFiddle - React, Tailwind, and code Playground
by bjelline
HTML
<ul>
<li class="fixed">Fixed Size</li>
<li>this text is very very long and it goes on and on and on and on but does not wrap </li>
<li><div>
<span>short</span>
</div></li>
<li><div>
<span>one more tab</span>
</div></li>
<li><div>
<span>another tab</span>
</div></li>
</ul>
CSS
ul {
margin: 0;
padding: 0;
list-style: none;
display: table;
border-spacing: 6px 0px;
height: 16px;
}
li {
display: table-cell;
background-color: red;
min-width: 10px;
width: 100px;
overflow: hidden;
text-overflow: ellipsis;
}
li.fixed {
width: 100px;
min-width: 100px;
text-align: center;
}