I have a table and that has lots of columns and basically, the table
has the class of table-responsive
which comes with this CSS settings:
.table-responsive {
display: block;
width: 100%;
overflow-x: scrollbar;
}
And it properly shows the horizontal scrollbar:
But the problem is, that this scrollbar appears at the end of the table and I want this to be displayed at the top of the table where the data is being displayed (top of the 1st row).
So how can I move the horizontall scrollbar to to the top of the table (after <thead>
)?
<table class="table table-bordered table-sm">
<thead class="thead-dark">
<tr>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 3</th>
..
<th>Col 10</th>
</tr>
</thead>
<tbody>
<tr>
...
</tr>
</tbody>
</table>