MediaWiki:Gadget-StickyTableHeaders.css

/* Safari 14 has an issue where table captions interfere with a proper offset */ /* Works with Chrome 91 and later */ /* Works with Firefox v59 and later */ /* Timeless has a problem on Chrome and Safari to apply the extra offset to clear its sticky header */ /* The CSS can also be used without the gadget's JS, but in that case can only deal with header cells in the first row */

/* * Applies to to tablesorter and sticky header gadget created theads/tfoots. * These theads can be multi row. * If either of these were not applied, apply to the th cells of the first row. */ .jquery-tablesorter > thead, .mw-sticky-header > thead, .wikitable:not(.jquery-tablesorter):not(.mw-sticky-header) > tbody > tr:first-child > th { position: sticky; top: 0; z-index: 12; }

.jquery-tablesorter > tfoot, .mw-sticky-header > tfoot { position: sticky; bottom: 0; z-index: 12; }