I have a table:
<table class="list-table">
<thead><tr><th>header</th></tr></thead>
<tbody>
<tr><td>Single row of glorious table content</td></tr> // Repeat me x100
</tbody>
</table>
This table is wrapped in a div to give it a fixed height:
<div class="col-sm-3 col-sm-offset-9" style="top:80px; bottom:20px;">
<table>
...
</table>
</div>
Now the question: How can I use overflow:auto
(or equivalent) to have the tbody
contents scroll if the TR repeats exceed this fixed height?
*Note I want only the tbody
(or tr
contents in the tbody
) to scroll, not the thead
or its contents *
*EDIT: UPDATE *
For those interested, I ended up splitting this into two identical tables, then wrapping the table with the tbody
in a overflow:auto
and aligning the thead
separately with a position:fixed