JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<table>
<tr>
<td>SomeText</td>
<td>SomeOtherTextSomeOtherTextSomeOtherText</td>
<td>SomeLongerTextSomeLongerTextSomeLongerTextSomeLongerTextSomeLongerText</td>
</tr>
</table>
</div>
What i want:
<div>
<table>
<tr>
<td>SomeText</td>
<td style="max-width: 209px">SomeOtherTextSomeOtherTextSomeOtherText</td>
<td style="max-width: 209px">SomeLongerTextSomeLongerTextSomeLongerTextSomeLongerTextSomeLongerText</td>
</tr>
</table>
</div>
CSS
div {
border: 1px solid red;
width: 500px;
}
table {
table-layout: auto;
border: 1px solid grey;
}
td {
border: 1px solid black;
overflow: hidden;
text-overflow: ellipsis;
}