I need to create a table with fixed thead and scrollable tbody. I also need thead columns to be fit to tbody columns.
For example I have table like this:
<table>
<thead>
<tr>
<th>
aaa
</th>
<th>
aaabbb
</th>
<th>
aaabbbccc
</th>
<th>
aaabbbcccddd
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
asdf
</td>
<td>
asdfaaabbb
</td>
<td>
asdfaaa
</td>
<td>
asd
</td>
</tr>
</tbody>
</table>
Have you any ideas to fit thead columns to tbody columns?