User:Timeshifter/Sandbox247
{{Uses TemplateStyles|Template:Sticky header/styles.css}}
This sandbox is using {{t|sticky header}}.
See also: User:Timeshifter/Sandbox244.
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 (sortable). class=sticky-header
{{Sticky header}}
class="wikitable sortable sticky-header"
|+ Caption | ||
Header | Header 2
! class="unsortable" | Header 3 | |
---|---|---|
class="sorttop"
| top | top | top |
3 | data | b |
1 | data | c |
2 | data | a |
class="sortbottom"
| bottom | bottom | bottom |
Test sticky-header (sortable). class=sticky for sorttop to work
Note that class=sticky is on a different line in the wikitext than class=sticky-header
{{Sticky header}}
class="wikitable sortable"
|+ Caption | ||
class=sticky
! Header !! Header 2 ! class="unsortable" | Header 3 | ||
class="sorttop"
| top | top | top |
3 | data | b |
1 | data | c |
2 | data | a |
class="sortbottom"
| bottom | bottom | bottom |
Padding
(for padding)
More padding
(for even more padding)