COL Element | COL Object

DHTML, HTML, & CSS

COL Element | COL Object


Specifies column-based defaults for the table properties.

HTML Syntax

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

Remarks

The COL element is a block element and 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 examples uses the COL element to specify characteristics for default columns in a table.

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

See Also

COLGROUP


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.