|
Lesson 15Intro to Colspan and Rowspan
You can build "super cells" using colspan and rowspan.
Now we'll combine the top row cells into one big cell using <td colspan="4">. We will span 4 columns. Since the first data cell takes up the whole row, we only need 1 <td> tag in the first row:
Now we'll combine the first column cells into one big cell using <td rowspan="4">. We will span 4 rows. Since the first data cell takes up a whole column, we only need 3 <td> tags in the 2nd, 3rd & 4th rows:
For the last table, we'll use colspan and rowspan as above. Then we'll use both colspan and rowspan to combine 4 cells into one "super-wide super-tall" cell.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||