I have a table (auto width) and want the columns only to stretch to fit the cell content width, but then shrink and use text-overflow:ellipsis when the screen is not wide enough. I have tried different widths, values and units, but can only get one or the other function to work.
<table border="1">
<tr>
<td style="max-width:fit-content; overflow:hidden; text-overflow:ellipsis; white-space:nowrap">fit cell width to content and truncate text when needed</td>
</tr>
</table>