How to Freeze a Header Row in a Table
Learn how to freeze header row in table with Tablesmit. Design, format, and export with full control. Tablesmit makes it simple. Tablesmit handles it all.
The problem with scrolling tables
Learn how to freeze header row in table with Tablesmit. A table with ten rows fits on most screens. A table with twenty or thirty rows does not. Once you scroll down, the header row disappears and you can no longer see which column is which. You scroll back up, check the header, scroll down again — the friction adds up.
Spreadsheet applications solved this years ago with freeze panes. The header row stays pinned at the top while the rest of the table scrolls beneath it. Web table tools have been slower to adopt the pattern.
What freeze panes look like
When freeze is active, the header row remains fixed at the top of the table during scroll. A thin line in the primary colour marks the boundary between the frozen area and the scrollable rows. The rest of the table behaves normally — you scroll down, the data moves, the headers stay.
You can also freeze the first column independently, which is useful for tables where the row labels are in the leftmost column.
How to freeze a header row in Tablesmit
Tablesmit supports freeze panes for both the header row and the first column.
Freeze the header row
- Open your table in Tablesmit.
- Locate the Header Options panel in the left sidebar.
- Check the box labelled Freeze header row.
- Scroll through your table. The header row stays pinned at the top.
Freeze the first column
- In the same Header Options panel, check Freeze first column.
- The first column stays pinned to the left as you scroll horizontally.
Freeze both
Check both options. The top-left cell receives the highest z-index layer so it remains correctly positioned when both the header and first column are frozen.
When to use each option
| Scenario | Freeze setting |
|---|---|
| A long table of research data with column headers | Freeze header row |
| A wide table with row labels in the first column | Freeze first column |
| A table that is both tall and wide | Freeze both |
| A small table that fits on one screen | Neither |
What freeze does not affect
Freeze panes are a view-only feature. They do not change the underlying data, affect exports, or alter how the table prints. When you export to PDF or Excel, the table exports in full with no frozen panes — the freeze is a screen convenience only.
The frozen area is purely CSS-based (position: sticky on the relevant cells). There is no JavaScript recalculating positions during scroll, so there is no performance cost.
Try it
Open Tablesmit, create a table with at least fifteen rows, and toggle the freeze header option. Scroll and see the headers stay in place.
Try Tablesmit for yourself — free, no signup required.
Open Tablesmit