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 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.
The table above (even if some more columns are added) maintains one line per country for narrower browser and screen widths. So it is therefore more readable and scannable in long country tables. The table format below can greatly increase in number of lines, and require more vertical scrolling, especially if more columns are added.
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).
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.
2) The RHCP pages aren't using a table, but a chart table (de:Vorlage:Charttabelle), which looks like a table in a desktop browser, but changes in a mobile browser so that row data is displayed vertically as opposed to horizontally with the column headers listed at the top of the entire chart. In certain curcumstances, this might be a better ...
Examples of horizontal and vertical scrollbars around a text box Examples of vertical scrollbar at right end of Wikipedia home page. A scrollbar is an interaction technique or widget in which continuous text, pictures, or any other content can be scrolled in a predetermined direction (up, down, left, or right) on a computer display, window, or viewport so that all of the content can be viewed ...
The example table below is adapted from a version of this article: List of countries with annual rates and counts for killings by law enforcement officers. It illustrates how many columns can successfully be added to a table, and still be readable, even in a cell phone. It is important to make the sticky header less tall within cell phones.