Table fixed header

Bootstrap 5 Table fixed header component

Responsive Table Fixed Header built with Bootstrap 5. Use this option to make your table header sticky to the top while scrolling. Examples and tutorial.


Basic example

The key to achieve a table header which is fixed on scroll is by setting the position property to sticky and specifying "0" as a value of top property for the thead element.



Datatable fixed header

Use the fixedHeader option to ensure that a table's header is always visible while scrolling.