table header disappear on scroll bootstrap 4 code example Example: table fixed header .tableFixHead thead th { position: sticky; top: 0; }