Spanning a Cell across Rows

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

Figure 16.47. I can make the left navigational bar span both rows, and then I have to adjust the second row’s cell so that it no longer tries to span two columns.

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 ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.