As specified in the W3 specification for Tables:
Table rows may be grouped into a table head, table foot, and one or more table body sections, using
thead { position: fixed; height: 10px; /* This is whatever height you want */ } tbody { position: fixed; margin-top: 10px; /* This has to match the height of thead */ height: 300px; /* This is whatever height you want */ }