how to keep table header fixed in html css code example Example: table fixed header .tableFixHead thead th { position: sticky; top: 0; }