Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style columnFill Property

Style columnFill Property

Style Object Reference The Style object

Example

Specifies how to fill columns:

document.getElementById("myDIV").style.columnFill="auto";


Definition and Usage

The columnFill property specifies how to fill columns (whether to balance them).


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Almost all major browsers do not support the columnFill property.


Syntax

Return the columnFill property:

object

.style.columnFill

Set the columnFill property:

object

.style.columnFill="balance|auto|initial|inherit"

Attribute values

Value Description
balance Default value. Balances the columns. The browser should minimize the differences in column lengths.
auto Fills the columns in order, so the column lengths may differ.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical Details

Default value: balance
Return Value: A string that represents the column-fill property of an element.
CSS version CSS3

Related Articles

CSS3 Tutorial:CSS3 Multiple Columns

CSS Reference Manual:column-fill property


Style Object Reference The Style object