Course recommendation:

Style columnRuleWidth attribute

Definition and usage columnRuleWidth

Attribute specifies the width of the rule between columns.

See also:CSS πολυστήματα

CSS3 Tutorial:column-rule-width attribute

CSS Reference Manual:

Example

Change the width of the rule between columns:

document.getElementById("myDIV").style.columnRuleWidth = "10px";

Try it yourself

Syntax

Sets the columnRuleWidth attribute:Returns the columnRuleWidth attribute:

.style.columnRuleWidth

Sets the columnRuleWidth attribute:objectlength.style.columnRuleWidth = "medium|thin|thick|

|initial|inherit"

Attribute value Value
medium Description
Default value. Defines a medium rule. Defines the thin rule.
thin Defines the width of the thick rule.
length Specifies the width of the rule.
initial Sets this attribute to its default value. See initial.
inherit Inherits this attribute from its parent element. See inherit.

Technical details

Default value: medium
Return value: string, indicating the column-rule-width attribute.
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