English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

CSS Reference Manual

CSS @rules (RULES)

Comprehensive List of CSS Properties

CSS3 column-Usage and examples of fill attribute

column-The fill CSS attribute specifies how the column length in multi-column elements is affected by the content flow. The content in multi-column layout is balanced, which means that the content in all columns will have the same height, or only occupy space when using the auto value, to meet the needs of the content.

The following table provides usage instructions and version history of this attribute, as well as the syntax of using this attribute in JavaScript scripts.

Default value:balance
Applies to:Multi-column elements
Inheritance:None
Animatable:No Animation attribute.
Version: CSS3new feature
JavaScript syntax:object.style.columnFill="auto"

column-The syntax of fill usage

The syntax of this attribute is as follows:

column-fill: auto | balance | initial | inherit

The following example demonstrates how to use column-fill attribute.

p {
   -moz-column-fill: auto; /* Firefox */
        column-fill: auto; 
}
Test and see‹/›

Attribute value

The following table describes the value of this attribute.

ValueDescription
autoFill the columns sequentially so that the length of the columns can be different, depending on the values of other column attributes.
balanceFill the columns in order to balance the column heights as much as possible according to the values of other column attributes.
initialSet this property to its default value.
inheritIf specified, the associated element adopts its parent element column-The value of the fill attribute.

Browser compatibility

column-Browser compatibility of the fill attribute, the numbers in the table below represent the minimum version number of the browser that supports this attribute; currently only Firefox browser supports this attribute.

  • Firefox 13+ -moz-

  • Google Chrome×

  • Internet Explorer ×

  • Apple Safari ×

  • Opera ×

Further reading

Please refer to the following tutorials:CSS3Multi-column layout.

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