Name
col
Synopsis
<col />
Specifies properties for a column (or group of columns) within a
column group (colgroup). Columns
can share attributes (such as text alignment) without being part of a
formal structural grouping.
Attributes
Core(id,
class, style, title),
Internationalization,
Events, Alignment
attributes: align,
char, charoff,
valign (see tbody entry for
descriptions)
-
span="number" Specifies the number of columns “spanned” by the
colelement. The default value is 1. All columns indicated in the span are formatted according to the attribute settings incol.-
width="pixels, percentage, n*" Specifies the width of each column spanned by the
colelement. Width can be measured in pixels or percentages, or defined as a relative size (*). For example,2*sets the column two times wider than the other columns;0*sets the column width at the minimum necessary to hold the column’s contents. Thewidthattribute in thecolelement overrides the width settings of the containingcolgroupelement.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access