COLSPAN

by Florence W Deems
This table has 2 columns, one red, one blue.

<tr>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>


This table has 2 columns, one red, one blue.
But the yellow cell spans two columns.


<tr>
<td colspan=2></td>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>





This table has 3 columns, one red, one blue, one green
The yellow cell spans only two of the 3 columns.


<tr>
<td colspan=2></td> <td></td>
<td></td> <td></td> <td></td>
<td></td> <td></td> <td></td>
<td></td> <td></td> <td></td>
<td></td> <td></td> <td></td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>


This table has 3 columns, one red, one blue, one green
The yellow cell spans only two of the 3 columns.


<tr>
<td></td> <td></td> <td></td>
<td></td> <td></td> <td></td>
<td></td> <td colspan=2></td>
<td></td> <td></td> <td></td>
<td></td> <td></td> <td></td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>



RULE: The colspan number depends on
the number of columns that cell crosses.


Rowspan ~ Combined Colspan & Rowspan

Thursday 14th of December 2017 05:00:48 AM

See Flo's Other Tutes


by
~ Arbor Hosting ~