|
hitmill.com
![]() |
|
A free HTML Tutorial discusses the ROWSPAN attribute of the TABLE element used for making HTML tables and stretching a column vertically across two or more rows. |
|
ALIGN
BACKGROUND BGCOLOR BORDER BORDERCOLOR BORDERCOLORLIGHT BORDERCOLORDARK CELLPADDING CELLSPACING COLS COLSPAN FRAME HSPACE ROWSPAN VSPACE WIDTH ROWSPAN
The ROWSPAN attribute of the TABLE element is used to stretch a column vertically across two or more rows of a table when coding HTML for Web pages. The value of this attribute indicates the number of rows the column will stretch across.
If ROWSPAN="2" it will only stretch a column vertically across two rows.
The first row of the table has 3 columns coded as follows:
<TR> Because the first column contains the ROWSPAN which fills column 1 in rows 1, 2 and 3, when you code row 2 and row 3, do not again code column 1 but only code column 2 and column 3 in row 2, then only code column 2 and column 3 in row 3.
|