Help:Wiki University Wikitext--Tables - Row Spans

Spanning rows in tables
Here is an example: This ability to span rows is not quite as useful as spanning columns but it does have its uses.
 * Just as we have told you who to span columns with individual cells, you can also span rows as well.
 * NOTICE the first cell of the second row was merged with the cell in the first column of the third row.

How to span rows

 * If a cell is to span two rows, as in the above example, we use a class called "rowspan" like so:
 * rowspan="2"


 * NOTICE the "2" represents the number of rows to span.
 * This coding is inserted right after the pipe or explanation marks like so:
 * | rowspan="2" style="width:50%; ......." | Foods that have a .......

Here is the coding for the first three rows of the above table:
 * However instead of erasing the cells in the row we want to merge, we erase the cell in the row below like so:
 * NOTICE again the location of the class "rowspan."
 * NOTICE that the third row is missing a cell because it was merged with the cell in the row above.

Restrictions

 * You cannot create sortable tables with colspans.

Let's see if you got it
 Exercises
 * Use this coding for a table

Check your answers >
 * Merge the cells with Barley and Buckwheat in them.
 * Merge the cells with Peas, Carrots and Corn in them.

 Quick Quiz
 * Colspans must equal the number of cells in the next row.
 * A. True
 * B. False


 * If you have a row with four cells you can have in the preceding row one cell with a colspan=3 plus the remaining cell.
 * A. True
 * B. False


 * If you have a row of seven cells you can have in the preceding row one cell with a colspan=2, the next cell with a colspan=3 and the remaining cell with a colspan=2.
 * A. True
 * B. False

Check your answers >