Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Pure-CSS fixed table headers
table-layout: fixed
border-collapse: collapse
thead tr
display: block
position: relative
display: block
overflow: auto
width: 100%
height: $table-body-height
// (need to specify table & column widths)
td, th
min-width: $col-1-width
min-width: $col-2-width
// ...
width: 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment