This sandbox is using {{sticky header/testcases}}.

See: User:Timeshifter/Sandbox243.

I put only narrow 3-column tables here. Sometimes, wider tables visible on the same page prevent even narrow tables from having sticky headers. Depends on the CSS styles used.

Test sticky-header (no caption). Narrower tables

edit

Plain table:

Test sticky-header (sortable). Narrower tables

edit

Plain table:

Padding

edit

(for padding)

More padding

edit

(for even more padding)