previous | start | next

COLGROUP

<COLGROUP
HALIGN=CENTER|LEFT|RIGHT
SPAN=n
VALIGN=MIDDLE|TOP|BOTTOM
WIDTH=n>

Sets the properties of one or more columns.

HALIGN=CENTER|LEFT|RIGHT
Specifies the horizontal alignment of text in the cells for the column group specified in the element. The default is CENTER.
CENTER Text is aligned in 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 that are in the group and for which the properties are set.
VALIGN=MIDDLE|TOP|BOTTOM
Specifies the vertical alignment of text within the cells specified in the columns. The default is MIDDLE.
MIDDLE Text is aligned in the middle of cells specified in the column group.
TOP Text is aligned to the top of cells specified in the column group.
BOTTOM Text is aligned to the bottom of cells specified in the column group.
WIDTH=n Indicates the width of the columns in the column group.

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

If the columns in a group of columns require varying properties, use COLGROUP in conjunction with one or more COL elements to individually set the properties for the columns.

This element affects how rules are drawn within a table when groups are specified with the = HREF="slide.htm"#htmlref2_0001000114004710>RULES= attribute in the TABLE element. In this case, vertical rules are drawn between column groups rather than between individual columns.

Example

<TABLE>
<COLGROUP ALIGN=RIGHT>
<COLGROUP SPAN=2 ALIGN=LEFT>
<TBODY>
    <TR>
    <TD>This column is in the first group and is right-aligned.</TD>
    <TD>This column is in the second group and is left-aligned.</TD>
    <TD>This column is in the second group and is left-aligned.</TD>
    </TR>
</TABLE>


previous | start | next