I am facing an issue where I need to freeze a column in a table and have the other columns scroll horizontally. To better explain, here is a visual representation:
https://i.sstatic.net/Y5MP9.png
My attempt to use overflow scroll did not seem to work:
.horizontal-scrolling {
display: flex;
width: 500px;
overflow: scroll;
}
.horizontal-scrolling th {
width: 250px;
}
<table>
<thead>
<tr>
<th>First</th>
<span class="horizontal-scrolling">
<th>Second</th>
<th>Third</th>
<th>Fourth</th>
</span>
</tr>
<thead>
</table>