Is there a way to achieve this layout without relying on Javascript?
Imagine having a <table>
with an unknown width in the first column. The overall <table>
width is set to 100%
to allow other columns to resize accordingly, but is it possible to keep the first column with a fixed width to prevent it from expanding beyond the content?
Can this be done without using Javascript?
<table>
<tr>
<th>First Column with Unknown Width</th>
<th>Second Column with Flexible Width</th>
</tr>
<tr>
<td>Content ...</td>
<td>More Content ...</td>
</tr>
</table>