CELL SPANNING
[ Back ] [ Up ]
The following work of art is actually a table. Most of the cells SPAN a
column or a row. Since we don't actually use COLUMNS in tables, only CELLS, the
cells span several CELLS. Other cells span several ROWS. To have one cell occupy
the space of two cells in width:
<TD COLSPAN="2">
To have a cell span two cells on adjacent rows:
<TD ROWSPAN="2">
<CENTER>
<TABLE BORDER="0" WIDTH="525" CELLSPACING="4">
<TR HEIGHT="75">
<TD WIDTH="325" ROWSPAN="4" BGCOLOR="#FF0000"> </TD>
<TD WIDTH="75" COLSPAN="2" BGCOLOR="#FF8800"> </TD>
<TD WIDTH="125" ROWSPAN="3" BGCOLOR="#eeee00"> </TD>
</TR>
<TR HEIGHT="25">
<TD WIDTH="50" ROWSPAN="2" BGCOLOR="#00cccc"> </TD>
<TD WIDTH="25" BGCOLOR="#0000FF"> </TD>
</TR>
<TR HEIGHT="25">
<TD WIDTH="25" BGCOLOR="#dd00dd"> </TD>
</TR>
<TR HEIGHT="200">
<TD WIDTH="200" COLSPAN="3" BGCOLOR="#00dd00"> </TD>
</TR>
</TABLE>
</CENTER>
|
Back