Defines table column header, width, alignment, and text. Used
within a cftable tag.

 <cfcol header="" text="">

 cfcol(header="", text="");

Discouraged: The use of tags that generate client side UI code is generally discouraged by the CFML community. See:

Attribute Reference for the cfcol tag


Required: Yes
Column header text. To use this attribute, you must also
use the cftable colHeaders attribute.


Required: No
Default: 20
Column width. If the length of data displayed exceeds this
value, data is truncated to fit. To avoid this, use an
HTML table tag.


Required: No
Default: left
Column alignment Values:
  • left
  • center
  • right


Required: Yes
Double-quotation mark-delimited text; determines what to
display. Rules: same as for cfoutput sections. You can
embed hyperlinks, image references, and input controls

Links more information about cfcol

Fork me on GitHub