Is there a way to evenly distribute the columns of a table when the width is determined by the content?
The table can have 3 or 4 columns that contain dynamic data, with one column potentially having large amounts of data.
Here are three example tables:
<table>
<thead>
<tr>
<th>Title block 1<br> or block 2</th>
<th>Title block 2<br> of block 3</th>
<th>This is the title for<br> block 3</th>
<th>Last block title<br> here</th>
</tr>
</thead>
<tbody>
<tr>
<td>20</td>
<td>213, 124, 213, 124, 213...</td>
<td>€ 200.000</td>
<td>XQABBBBQQVVVSS1234567 X</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Title block 1<br> or block 2</th>
<th>Title block 2<br> of block 3</th>
<th>This is the title for<br> block 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>20</td>
<td>€ 200.000</td>
<td>XQABBBBQQVVVSS1234567 X</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Title block 1<br> or block 2</th>
<th>Title block 2<br> of block 3</th>
<th>This is the title for<br> block 3</th>
<th>Last block title<br> here</th>
</tr>
</thead>
<tbody>
<tr>
<td>20</td>
<td>213</td>
<td>€ 200.000</td>
<td>XQABBBBQQVVVSS1234567 X</td>
</tr>
</tbody>
</table>
I want the first column to align with the far left and the last column with the far right, distributing the rest equally.
Though flexbox works for even distribution, it doesn't replicate the bottom border style in the table headers.
The mockup demonstrates the desired distribution in the sample table.
https://i.sstatic.net/Vglgt.jpg
How can I achieve this even distribution based on content in table columns?