JSFiddle - React, Tailwind, and code Playground

by bjelline

HTML

<div class="row">
    <div class="fixed">Fixed Size</div>
    <div class="ellipsis">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>
    <div>another tab</div>
</div>

CSS

div.row > div {
    float: left;
    margin-right: 10px;
    background-color: red;
    width: 100px;
    height: 18px;
}
div.row > div.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
}
div.row > div.fixed {
    width: 100px;
    min-width: 100px;
    text-align: center;
}