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

HeaderHeader 2

! class="unsortable" | Header 3

class="sorttop"

| top

toptop
3datab
1datac
2dataa
class="sortbottom"

| bottom

bottombottom

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

toptop
3datab
1datac
2dataa
class="sortbottom"

| bottom

bottombottom

Padding

(for padding)

More padding

(for even more padding)