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.
So, to keep a table within a line, the workaround is to put the whole line into a table, then embed a table within a table, using the outer table to force the whole line to stay together. Consider the following examples: Wikicode (showing table forces line-break)
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.
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 purpose is of this template is for generating simple tables in locations where standard table markup is either not possible, without significant use of the {{!}} magic word (e.g., with a {{}} template), or cumbersome (due to the repetitive use of specification of the same style statement in each row).
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.
Stack Overflow is a question-and-answer website for computer programmers. It is the flagship site of the Stack Exchange Network . [ 2 ] [ 3 ] [ 4 ] It was created in 2008 by Jeff Atwood and Joel Spolsky .