O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

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

column-span

Values:

none | all

Initial value:

none

Applies to:

Static-position nonfloating elements

Inherited:

No

Computed value:

Same as declared value

Description:

Defines the number of columns an element spans in an element laid out with multiple columns. There are only two options: to span no columns at all (none) or to span all columns (all). When an element spans multiple columns, content that comes before it is balanced above it across the columns. Content that comes after is balanced below the spanning element.

Examples:

h2 {column-span: all;}

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