--- title: column-fill slug: Web/CSS/column-fill translation_of: Web/CSS/column-fill ---
The column-fill
CSS property controls how contents are partitioned into columns. Contents are either balanced, which means that contents in all columns will have the same height or, when using auto
, just take up the room the content needs.
{{cssinfo}}
Formal syntax: {{csssyntax("column-fill")}}
column-fill: auto; column-fill: balance; /* Global values */ column-fill: inherit; column-fill: initial; column-fill: unset;
auto
balance
.content-box { column-count: 4; column-rule: 1px solid black; column-fill: balance; height: 200px; }
Specification | Status | Comment |
---|---|---|
{{SpecName('CSS3 Multicol', '#column-fill', 'column-fill')}} | {{Spec2('CSS3 Multicol')}} |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoDesktop("13.0")}}{{property_prefix('-moz')}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoMobile("13.0")}}{{property_prefix('-moz')}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |