Search results
Results from the WOW.Com Content Network
overflow-x: auto, to make the content scroll in the horizontal direction if its width surpasses the available space left over by the first table; and white-space: nowrap , to prevent content in cells from wrapping over, and thus keep them aligned with the rows on the left (which assumes the row headers are also rendered on a single line).
The table's horizontal scroll doesn't work with this template, so wide tables span outside of the main content area making the entire page wider and requiring you to instead horizontally scroll the entire page. Zooming out to see the entire table makes the headers sticky, but also makes the text smaller and less readable the wider the table is.
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.
Using this template without any classes puts a table in a scrollable box without sticky headers. If there is a need for a horizontal-only scroll window (for example with a wide table where sticky headers would be too large, and some rows are very tall) see: Help:Table#Overflowing tables.
A table can be useful even if none of the cells have content. For example, the background colors of cells can be changed with cell parameters, making the table into a diagram, like meta:Template talk:Square 8x8 pentomino example. An "image" in the form of a table is much more convenient to edit than an uploaded image.
No description. Template parameters [Edit template data] Parameter Description Type Status Text 1 no description Content optional No bold nb Set to use a normal font weight Suggested values y Unknown optional Vertical alignment va no description Suggested values bottom top middle Default bottom String optional Manual width mw Override the automatic generation based on the number of br line ...
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Pages for logged out editors learn more
Template:Resolved/See also, the smaller family of thread-level hatnote templates, similar to the above but with a box around them; any template above can be converted to one of those with {} Template:Table cell templates/doc, the family of table-specific templates that work only in tables; Category:Image with comment templates