I've looked through questions here and articles all over the internet, but haven't found yet solution that would satisfy my requirements. So now in 2017, is there an elegant way to have a <table>
that would:
- be written in html+css (no js)
- have fixed header (not scrollable; not sticky)
- have scrollable
<tbody>
(scrollbar may be always visible) - header and body would handle resizing properly and not mess alignment of the
<thead>
columns and the<tbody>
columns - would not use nested tables or separate table for header
This solution fulfills all 5 requirements: