JSFiddle - React, Tailwind, and code Playground

by Fedy2

HTML

<table>
    <tr>
        <td>
            <div> 
                <span>
                    this is a long sentence to test the text overflow
                </span>
            </div>
        </td>
    </tr>
</table>

CSS

table {
    width: 50px;
    table-layout: fixed;
}
td {
    border: 1px solid red;
}

div {

}

span {
    white-space: nowrap;
    text-overflow: ellipsis;
}