previous | start | next

COL

<COL
ALIGN=LEFT|CENTER|RIGHT
SPAN=n>

Sets the properties of one or more columns. Use this element in conjunction with a COLGROUP element to set the properties of a column within a group of columns.

ALIGN=CENTER|LEFT|RIGHT
Specifies the text alignment in cells within the column. The default is CENTER.
CENTER Text is aligned with the center of cells in the column.
LEFT Text is aligned to the left of cells in the column.
RIGHT Text is aligned to the right of cells in the column.
SPAN=n
Sets the number of consecutive columns for which the properties are set.

This element is valid only within a table. The end-tag is not required and is not recommended.

The properties specified by the COL element always override the properties specified by the preceding COLGROUP element.

Example

<TABLE>
<COLGROUP>
    <COL ALIGN=RIGHT>
    <COL ALIGN=LEFT>
<COLGROUP>
    <COL ALIGN=CENTER>
<TBODY>
    <TR>
    <TD>This is the first column in the group and is right-aligned.</TD>
    <TD>This is the second column in the group and is left-aligned.</TD>
    <TD>This column is in a new group and is centered.</TD>
    </TR>
</TABLE>


previous | start | next