Name

<col>

Synopsis

<col>

Description

Set properties for a column (or columns) within a <colgroup> of a table.

Attributes

align=value

Specify alignment of text in the cells of a column. Value can be center, left, or right.

char=character

Specify the alignment character for text in these cells.

charoff=value

Set the offset within the cell at which the alignment character will be placed.

span=n

Specify the number of columns to be affected by the <col> settings.

valign=position

Set the vertical alignment of text within the column to either top, middle, or bottom.

width=n

Set the width of the column, in pixels or as a percentage.

Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.