Style columnWidth property
- Previous Page columnSpan
- Next Page counterIncrement
- Go to the Previous Level HTML DOM Style Object
Definition and usage
columnWidth
Specifies the width of the column.
See also:
CSS3 Tutorial:CSS Multicol
CSS Reference Manual:column-width property
Example
Change the column width:
document.getElementById("myDIV").style.columnWidth = "100px";
Syntax
Return columnWidth property:
object.style.columnWidth
Set columnWidth property:
object.style.columnWidth = "auto|length|initial|inherit"
Property value
Value | Description |
---|---|
auto | Default value. The column width will be determined by the browser. |
length | Specifies the length value for 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 element's column-width property. |
CSS Version: | CSS3 |
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
- Previous Page columnSpan
- Next Page counterIncrement
- Go to the Previous Level HTML DOM Style Object