The table header remains fixed only when you scroll inside the table section, as shown in the image below.
If you scroll outside the table area, the entire page scrolls instead, causing the table header to move out of view, as shown in the image below.
