Share this Page URL

Chapter 10. Table Talk: Adding Tables to... > Table Refinishing—More Table Tidbits - Pg. 113

Table Talk: Adding Tables to Your Page 113 Figure 10.3. A cell that spans two columns. Spanning multiple rows is similar, except that you substitute ROWSPAN for COLSPAN in <TD> or <TH>: <TD ROWSPAN="rows"> <TH ROWSPAN="rows"> The rows value is the number of rows you want the cell to span. Here's an example (tblspan2.htm on this book's CD) that shows a cell spanning two rows: <HTML> <HEAD> <TITLE>Spanning Text Across Multiple Rows</TITLE> </HEAD> <BODY> <TABLE BORDER="1"> <CAPTION>The Spanning Thing -- Example #2 (ROWSPAN)</CAPTION> <TR> <TD ROWSPAN="2">This here item spans two whole rows</TD> <TD>The 1st Row</TD> </TR> <TR> <TD>The 2nd Row</TD> </TR> <TR> <TD>This one doesn't</TD> <TD>The 3rd Row</TD> </TR> </TABLE> </BODY> </HTML> Figure 10.4 shows the result. Figure 10.4. A cell that spans two rows.