Chapter 9: Tables
index | previous | next

Spanning a Cell across Rows

Creating a cell that spans more than one row is essentially identical to spanning cells over more than one column—just from another direction.

To span a cell across two or more rows:

  1. When you get to the point in which you need to define the cell that spans more than one row, type <TD.
  2. Type ROWSPAN=n>, where n equals the number of rows the cell should span.
  3. Type the cell’s contents.
  4. Type </TD>.
  5. Complete the rest of the table. If you define a cell with a rowspan of 2, you will not need to define the corresponding cell in the next row. If you define a cell with a rowspan of 3, you will not need to define the corresponding cells in the next two rows.
Figure 9.21 Now we’re getting somewhere. I’ve added the third column of text and spanned it across the three rows of the photo, caption, and two other columns of text. I’ve also adjusted the widths of the cells and of the table as necessary.
Figure 9.22 The highlighted column spans three rows: the row with the photo, the row with the caption, and the row of two cells of text.
previous | next