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
col
element. 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
col
element. 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. Thewidth
attribute in thecol
element overrides the width settings of the containingcolgroup
element.
Get Web Design in a Nutshell, 3rd 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.