User:SuperHamster/mobile.css

/* Make table column+row headers sticky during overflow scroll.

Adapted from CSS by User:Jroberson108 on English Wikipedia https://en.wikipedia.org/wiki/User:Jroberson108/common.css CC BY-SA 3.0

/* Add vertical scroll for mobile (vh) so sticky column headers work. */ table.sticky-headers { max-height: 100vh; overflow: auto; }

/* Make column headers top-sticky. */ table.sticky-headers > * > tr > th, table.sticky-headers > thead { position: -webkit-sticky; /* Safari */ position: sticky; top: -1px; z-index: 11; /* Above row headers */ }