COLGROUP Element | COLGROUP Object

DHTML, HTML, & CSS

COLGROUP Element | COLGROUP Object


Contains a group of columns.

HTML Syntax

<COLGROUP
    ALIGN=CENTER | LEFT | RIGHT
    CLASS=classname
    ID=value
    SPAN=n
    STYLE=css1-properties
    TITLE=text
    VALIGN=BASELINE | BOTTOM | MIDDLE | TOP
    WIDTH=n
>

Remarks

The COLGROUP element is a block element and requires a closing tag if the COLGROUP has COL elements nested within it; otherwise it does not require a closing tag.

This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

Members

Styles

Example

This example uses the COLGROUP element to assign specific characteristics to columns in a table.

<TABLE>
<COLGROUP ALIGN="RIGHT"></COLGROUP>
<COLGROUP SPAN="2" ALIGN="LEFT"></COLGROUP>
<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>

See Also

COL


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.