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-fill

Values:

auto | balance

Initial value:

balance

Applies to:

Elements laid out using multiple columns

Inherited:

No

Computed value:

Same as declared value

Description:

Defines how the columns in an element laid out with multiple columns are height-balanced (or not). This property’s value only takes hold in cases where the column lengths have been in some way constrained. The obvious case of this would be if the element’s height has been explicitly set. In all other cases, the columns are automatically balanced. The value auto means columns are filled sequentially, which is to say each column is filled to the full column height until the last, which is either under- or over-filled as necessary.

Examples:

body {height: 50em; column-fill: auto;}

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