The column-fill CSS property controls how an element's contents are balanced when broken into columns.

Try it


/* Keyword values */
column-fill: auto;
column-fill: balance;
column-fill: balance-all;

/* Global values */
column-fill: inherit;
column-fill: initial;
column-fill: revert;
column-fill: revert-layer;
column-fill: unset;

The column-fill property is specified as one of the keyword values listed below. The initial value is balance so the content will be balanced across the columns.



Columns are filled sequentially. Content takes up only the room it needs, possibly resulting in some columns remaining empty.


Content is equally divided between columns. In fragmented contexts, such as paged media, only the last fragment is balanced. Therefore in paged media, only the last page would be balanced.

balance-all Experimental

Content is equally divided between columns. In fragmented contexts, such as paged media, all fragments are balanced.

Formal definition

Initial valuebalance
Applies tomulticol elements
Computed valueas specified
Animation typediscrete

Formal syntax

column-fill = 
auto |
balance |


Balancing column content


<p class="fill-auto">
  This paragraph fills columns one at a time. Since all of the text can fit in
  the first column, the others are empty.

<p class="fill-balance">
  This paragraph attempts to balance the amount of content in each column.


p {
  height: 7em;
  background: #ff9;
  columns: 3;
  column-rule: 1px solid;

p.fill-auto {
  column-fill: auto;

p.fill-balance {
  column-fill: balance;



CSS Multi-column Layout Module Level 1
# cf

Browser compatibility

BCD tables only load in the browser

Warning: There are some interoperability issues and bugs with column-fill across browsers, due to unresolved issues in the specification.

In particular, when using column-fill: auto to fill columns sequentially, Chrome will only consult this property if the multicol container has a size in the block dimension (e.g., height in a horizontal writing mode). Firefox will always consult this property, therefore filling the first column with all of the content in cases where there is no size.

See also