Style columnWidth Property
Example
Change the width of the columns:
document.getElementById("myDIV").style.columnWidth="100px";
Try it »
Definition and Usage
The columnWidth property specifies the width of the columns.
Browser support

Internet Explorer 10 and Opera support the columnWidth property.
Firefox supports an alternative property to this one, namely the MozColumnWidth property.
Safari and Chrome support an alternative property to this one, namely the WebkitColumnWidth property.
Syntax
Return the columnWidth property:
object
.style.columnWidth
Set the columnWidth property:
object
.style.columnWidth="auto|
length
|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| auto | Default value. The width of the columns is determined by the browser. |
| length | A length that specifies the column width. |
| 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 |
|---|---|
| Return Value: | A string that represents the column-width property of an element. |
| CSS version | CSS3 |
Related Articles
CSS3 Tutorial:CSS3 Multiple Columns
CSS Reference Manual:column-width property
The Style object