Search results
Results from the WOW.Com Content Network
rowspan Extends a cell beyond its normal one row. For example, rowspan="2" specifies the cell should span two rows. colspan Extends a cell beyond its normal one column. For example, colspan="2" specifies the cell should span two columns. scope
The first uses colspan="2" <-- This row has three table data cells, but one spans two rows because it uses rowspan="2" <-- This row has only two table data cells, because its first is being taken up
The wikitext must be correct. An incorrect rowspan organization can break sorting, cause weird table formatting, move data to the wrong column, etc. See examples below. When sorted all the rows are filled. Tables without rowspan are much easier to maintain by less experienced editors, and by editors who are stopping by only once to edit the table.
The static-row-header class disables the number and border between other rows that use this class consecutively, simulating a rowspan (see Help:Table#Colspan and rowspan). It should be added to: Header rows excluding the first. For sortable tables, it prevents numbering when JavaScript is disabled. Rows using the sorttop or sortbottom class.
The template is compatible with collapsible tables, and cells using colspan or rowspan, in which case place the colspan/rowspan attribute between ! and {{diagonal split header 2 ...}}. It is not compatible with sortable tables, as the sort arrows are not drawn, but this problem can be resolved by using a second header row.
3 Examples. Toggle the table of contents. ... rowspan Optional; The number of rows to span. colspan Optional; The number of columns to span. Examples ...
Example: If merging non-similar cells is essential, while not ideal, a work-around is to create a hidden column. This column can be given an appropriate heading name, that will not appear to sighted readers but will be recognized and read by screen readers. The following example is a snippet of a table from List of chronometers on HMS Beagle.
There's a reason I put "sortable" in my example. Looks like rowspan=2 is working for you. Ah, rowspan was the first thing i tried, I just didn't know how to get the 5 below the 4 without breaking the table.