JSFiddle - React, Tailwind, and code Playground
HTML
<div class="scroll">
<table>
<thead>
<tr>
<td>
Title #1
</td>
<td class="second">
Title #2
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
Name #1
</td>
<td>
Description
</td>
</tr>
<tr>
<td>
Name #2
</td>
<td>
Description
</td>
</tr>
<tr>
<td>
Name #3
</td>
<td>
Description
</td>
</tr>
</tbody>
</table>
</div>
CSS
table {
width: auto;
}
table > thead > tr > td {
min-width: 100px;
max-width: 100px;
padding: 10px 20px;
border-right: 1px solid #666666;
background-color: #cccccc;
}
table > thead > tr > td.second {
min-width: 300px;
max-width: 300px;
}
table > tbody > tr > td {
padding: 30px 0;
}
div.scroll {
max-width: 400px;
max-height: 200px;
overflow: auto;
}