JSFiddle - React, Tailwind, and code Playground
HTML
<div class="table-wrapper">
<table id="table-information">
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<colgroup></colgroup>
<thead class="table-fixed-header" id="table-data">
<tr>
<th>Something 1</th>
<th>Something 2</th>
<th>Something 3</th>
<th>Something 4</th>
<th>Something 5</th>
<th>Something 6</th>
<th>Something 7</th>
<th>Something 8</th>
</tr>
</thead>
<tbody class="table-body">
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
</tbody>
</table>
</div>
CSS
.table-wrapper {
overflow-x: scroll;
}
.table-fixed-header {
position: fixed;
}
#table-information tbody:before {
line-height: 30px;
content:"-";
color:white; /* to hide text */
display:block;
}
#table-information td {
max-width: 100px;
min-width: 100px;
}
#table-information th {
max-width: 100px;
min-width: 100px;
}