User:Timeshifter/Sandbox256
See also: User:Timeshifter/Sandbox255. Row and column sticky headers work fine in desktop PCs in the tables below. Narrow your browser window to see. See:
Sticky headers in the 2 tables below work inconsistently for both row and column headers in Firefox and Chrome in mobile view on my iphone SE 2020. They don't work at all in desktop view on my iphone.
Margin:0 lessens the space between text directly above the table, and the table itself. The only difference between the 2 scrolling tables below is the addition of margin:0 to the 2nd table below.
{| class="wikitable sortable mw-datatable defaultcenter col1left sort-under-center sticky-col1" style="margin:0; font-size: 90%;"
Scrolling table without margin:0
[edit]Text directly above table.
Text directly below table.
Scrolling table with margin:0
[edit]Text directly above table.
Text directly below table.