The column-fill property in CSS is used to specify whether the columns will be filled in a balanced manner or not.
Syntax:
column-fill: auto|balance|balance-all|initial|inherit;
Default Value: balance
Property Values:
- balance: This is the default value for the property. This value fills each column with the same amount of content, but will not allow the columns to be taller than the height.
- auto: This value fills each column until it reaches the height
- balance-all: This value is used to divide the content equally between the columns. In fragmented contexts, all fragments are balanced.
- initial: This value is used to set the column-fill property to its default value.
- inherit: This value is used to inherit the column-fill property from its parent.
Example: To illustrate the auto value and balanced value for the column-fill property.
Output:
👁 Image
Supported Browsers: The browsers supported by CSS | column-fill Property are listed below:
- Google Chrome 50.0 and above
- Edge 12.0 and above
- Firefox 52.0 and above
- Opera 37.0 and above
- Safari 9.0 and above