<table><thead><tr><th class="header">...</th><!-- Repeat other header column ... --></tr></thead><tbody></tbody></table>
.header {/* Background color */background-color: #ddd;/* Stick to the top */position: sticky;top: 0;/* Displayed on top of other rows when scrolling */z-index: 9999;}