html table header fixed on top code example Example: table fixed header .tableFixHead thead th { position: sticky; top: 0; }