I am attempting to create an HTML table with three columns, where I want the first and third columns to have a width of "auto" based on their content. The middle column should then take up the remaining space.
While this setup works well when the content in the middle column is narrower than the available width, it results in overflow if the content exceeds the column width.
Is there a way to achieve this layout even with long text in the middle column? What I'm aiming for is to truncate the text if it exceeds the column width.
<div style="background-color:orange; width:200px; padding: 5px">
<table style="background-color: pink">
<tr>
<td style="background-color:red">
123456
</td>
<td style="background-color:yellow; width:100%">
1234567890123
</td>
<td style="background-color:green">
123456
</td>
</tr>
</table>
</div>