O'Reilly logo

DocBook 5: The Definitive Guide by Richard L. Hamilton, Norman Walsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

colgroup — A group of columns in an HTML table

Synopsis

colgroup ::= col*

Attribute synopsis

Attributes:

  • align (enumeration) = “left” | “center” | “right” | “justify” | “char”

  • char

  • charoff (enumeration) = xsd:integer | xsd:string (Pattern: “[0–9]+%”)

  • span (nonNegativeInteger)

  • valign (enumeration) = “top” | “middle” | “bottom” | “baseline”

  • width

Description

Identifies a column group in an HTML table.

Processing expectations

Processed like an HTML colgroup.

Attributes

align

Specifies the alignment of data and the justification of text in a cell.

Enumerated values:
“left”

Left-flush data/Left-justify text. This is the default value for table data.

“center”

Center data/Center-justify text. This is the default value for table headers.

“right”

Right-flush data/Right-justify text.

“justify”

Double-justify text.

“char”

Align text around a specific character. If a user agent doesn’t support character alignment, behavior in the presence of this value is unspecified.

char

Specifies a single character within a text fragment to act as an axis for alignment. The default value for this attribute is the decimal point character for the current language as set by the lang attribute (e.g., the period in English and the comma in French). User agents are not required to support this attribute.

charoff

When present, specifies the offset to the first occurrence of the alignment character on each line. If a line doesn’t include the alignment character, it should be horizontally shifted to end at the alignment position. When charoff ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required