table fixed header
Code Example - table fixed header
.tableFixHead thead th { position: sticky; top: 0; }
html table scrollable body fixed header
/*Simply*/ position:sticky; top: 0; /*your th elements*/