Style columns Property
Example
Divide the text into three columns, each at least 100 pixels wide:
document.getElementById("myDIV").style.columns="100px 3";
Try it »
Definition and Usage
The columns property is a shorthand property used to set columnWidth and columnCount.
Browser support

Internet Explorer 10 and Opera support the columns property.
Firefox supports an alternative property to this one, namely the MozColumns property.
Safari and Chrome support an alternative property to this one, namely the WebkitColumns property.
Syntax
Return the columns property:
object
.style.columns
Set the columns property:
object
.style.columns="auto|
column-width column-count
|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| auto | Default value. Sets column-width to "auto" and column-count to "auto". |
| columnWidth | The width of the columns. |
| columnCount | The number of columns. |
| initial | Sets this property to its default value. See initial. |
| inherit | Inherits this property from its parent element. See inherit. |
Technical Details
| Default value: | auto auto |
|---|---|
| Return Value: | A string that represents the columns property of an element. |
| CSS version | CSS3 |
Related Articles
CSS3 Tutorial:CSS3 Multiple Columns
CSS Reference Manual:columns property
The Style object