Style columnWidth property

Definition and usage

columnWidth Property specifies the column width.

See also:

CSS3 Tutorial:CSS flere kolonner

CSS Reference Manual:column-width property

Example

Change the column width:

document.getElementById("myDIV").style.columnWidth = "100px";

Try it yourself

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