CSS PROPERTIES
Expand All | Collapse All
CSS AT-RULES
Advertisements

CSS3 column-span Property

Topic: CSS3 Properties ReferencePrev|Next

Description

The column-span CSS property specifies how many columns an element spans across in a multi-column layout. Element that spans more than one column is called a spanning element.

The following table summarizes the usages context and the version history of this property.

Default value: none
Applies to:
Block-level elements, except floating and absolutely positioned elements
Inherited: No
Animatable: No. See animatable properties.
Version: New in CSS3

Syntax

The syntax of the property is given with:

column-span: 
none | all | initial | inherit

The example below shows the column-span property in action.

h1 {
    -webkit-column-span: all; /* Chrome, Safari, Opera */
            column-span: all; /* Standard syntax */
}

Property Values

The following table describes the values of this property.

Value Description
none The element does not span multiple columns. This is default value.
all The element spans across all the columns on a page. All content that is declared before the element is shown before the element.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element column-span property.

Browser Compatibility

The column-span property is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 2+ -moz-
  • Google Chrome 4+ -webkit-
  • Internet Explorer 10+
  • Apple Safari 3.1+ -webkit-
  • Opera 11.1+ -o-, 15+ -webkit-

Further Reading

See tutorial on: CSS3 Multi-column Layouts.

Related properties: column-width, column-fill, column-gap, column-rule, column-rule-color, column-rule-style, column-rule-width, column-count, columns.

Advertisements
Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties