column-fill
The column-fill CSS property sets the distribution of content across columns in a multi-column layout.
Overview
The column-fill CSS property sets the distribution of content across columns in a multi-column layout.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 50 | 12 | 52 | 9 | 50 | 9 | |
auto | 50 | 12 | 17 | 8 | 50 | 8 |
balance | 50 | 12 | 17 | 8 | 50 | 8 |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 2 item(s)
Removed
- This feature was removed in a later browser version (74)
Compatibility
- Available with a vendor prefix: -moz- (17)
Notes 1 item(s)
Compatibility
- Available with a vendor prefix: -webkit- (8)
Notes 1 item(s)
Compatibility
- Available with a vendor prefix: -webkit- (8)
Syntax
CSS
.balanced-columns {
columns: 3;
column-fill: balance;
}
.sequential-columns {
columns: 3;
column-fill: auto;
height: 300px;
} Live demo
Use cases
Using column-fill
The column-fill CSS property sets the distribution of content across columns in a multi-column layout.
Cautions
- May not be supported in older browsers.
Accessibility
- Make sure visual changes are conveyed appropriately to assistive technology.
Related links
Powered by web-features