Style columnWidth attribute

Definition and usage

columnWidth Attribute specifies the column width.

See also:

CSS3 Tutorial:CSS ɗanin tsaɗin

CSS Reference Manual:column-width attribute

Example

Change the column width:

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

Try it yourself

Syntax

Return columnWidth attribute:

object.style.columnWidth

Set columnWidth attribute:

object.style.columnWidth = "auto|length|initial|inherit"

Attribute value

Value Description
auto Default value. The column width will be determined by the browser.
length Specifies the length value of the column width.
initial Sets this attribute to its default value. See initial.
inherit Inherits this attribute from its parent element. See inherit.

Technical details

Default value: auto
Return value: string, indicating the element's column-width attribute.
CSS version: CSS3

browser supports

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
50.0 10.0 52.0 10.0 37.0