<cfcol>

Defines table column header, width, alignment, and text. Used only inside a cftable.

This tag cannot have a body.

This tag is also supported within <cfscript>

Attribute Description
text
string, optional

Double-quote delimited text that determines what displays in the column. The rules for the text attribute are identical to the rules for cfoutput sections; it can consist of a combination of literal text, HTML tags, and query record set field references. You can embed hyperlinks, image references, and input controls in columns.

align
string, optional

Column alignment, Left, Right, or Center.

width
number, optional

The width of the column in characters (the default is 20). If the length of the data displayed exceeds the width value, the data is truncated to fit.

header
string, required

The text for the column's header.

<cfcol
    [text=string]
    [align=string]
    [width=number]
    header=string
>

Examples

There are currently no examples for this tag.

See also