Style columnWidth property
- Previous page columnSpan
- Next page counterIncrement
- Go up one level HTML DOM Style Object
Definition and usage
columnWidth
Property defines the width of the column.
See also:
CSS3 Tutorial:CSS multi-column
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 up one level HTML DOM Style Object