Search results
Results from the WOW.Com Content Network
The scrolling and sticky headers work in cell phones, too. Widest scrolling tables are on top of the list below. Narrow your browser window until you see a horizontal scroll bar. Drag it left and right to see the sticky row headers that stay visible. Template:2020 monthly cumulative COVID-19 death totals by country; Template:2021 2nd half.
Consecutive rows of column headers are top sticky, so avoid adding a row of headers right under the column headers that don't apply to the entire table such as a section header meant to visually separate the table. A solution might be to move each section to a column or separate tables, which also avoids accessibility issues per MOS:COLHEAD.
The scrollbar only appears if the table is actually wider than the page. This template allows up to 30 row headers passed as parameters to its {{Scrolling table/top}} subtemplate, for convenience. Extra row headers can be added using regular table syntax, between the {{Scrolling table/top}} and the {{Scrolling table/mid}} subtemplates
In the following example, five different tables are shown nested inside the cells of a sixth, main table. None has any header cells. Automatically, the two tables |A| and |B|B| are vertically aligned instead of the usual side-by-side of text characters in a cell. float is used to fix each of tables |C| and |D| to their own position within one ...
For example, nested tables (tables inside tables) should be separated into distinct tables when possible. Here is a more advanced example, showing some more options available for making up tables. Users can play with these settings in their own table to see what effect they have.
See the Width section of Help:Table.To summarize, max-width is the preferred way to limit widths on tables. It works on divs too. Note though that in both tables and divs there needs to be spaces in long lines of text or wikitext.
This style allows Vector Legacy users to keep the top bar (with the search bar and the talkpage, edit, userpage, etc. links) visible as you scroll, similar to Vector 2022: @ media screen { # mw-head { position : fixed ; background : linear-gradient ( to bottom , #fff 50 % , #f6f6f6 100 % ); } }
Much of WP:Manual of Style § Article titles, headings, and sections also pertains to table headers: Use sentence case; avoid redundantly including the subject's name in a header; do not put images in the header (including flag icons), unless this is the best way to present tabular information in a particular case; and do not use questions as ...