Name

column-span — NN n/a IE n/a CSS 2

Synopsis

Inherited: No

Sets the number of columns to be spanned by a table cell, column, or column group. Analogous to the COLSPAN attribute of a TD or TH element and the SPAN attribute of a COL or COLGROUP element.

CSS Syntax

column-span: integer

Value

Any positive integer representing the number of columns.

Initial Value

1

Example

#divider {column-span: 5}

Applies To

TD, TH, COL, and COLGROUP elements and any other cell, column, or column group type of element.

Get Dynamic HTML: The Definitive Reference 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.