I currently have a table that spans 100% of the window width.
Here is a simplified structure of the table (CSS/styles removed for clarity)
<table>
<tbody>
<tr>
<td>Row ID</td>
<td><div>Some content</div><div>Another</div>...and so on
</tr>
</tbody>
</table>
In the second cell of each row, there are DIVs with rows of text. Currently, these DIV elements stretch to the edge of the table and wrap when they can't fit within the cell.
What I am looking for is a way for these DIV elements to stay in a single row and flow beyond the screen width. I have tried manually setting the table width to a large value like 400%, but that's not an optimal solution. I need the table to expand only to accommodate the widest row. Using white-space: nowrap
only prevents text wrapping within each DIV.
Is there a CSS solution to achieve this layout?