Share this Page URL

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

Table Talk: Adding Tables to Your Page 112 Webmaster Wisdom In Figure 10.2, did you notice that the cell in the top-left corner of the table is empty? I did this just by placing a <TD> tag and </TD> tag side by side, with nothing in between. Note that, in the browser, the cell appears "filled in." If you want a truly empty cell, insert a nonbreaking space, like so: <TD>&nbsp;</TD>. Spanning Text Across Multiple Rows or Columns The data we've entered into our table cells so far has been decidedly monogamous. That is, each hunk of data has shacked up with only one cell. But it's possible (and perfectly legal) for data to be bigamous (take up two cells) or even polygamous (take up three or more cells). Such cells are said to span multiple rows or columns, which can come in quite handy for headers and graphics. Let's start with spanning multiple columns. To do this, you need to interpose the COLSPAN (column span) attribute into the <TD> or <TH> tag: <TD COLSPAN="cols">