Style columnRuleWidth Property
Example
Change the width of the rule between columns:
document.getElementById("myDIV").style.columnRuleWidth = "10px";
Try it Yourself »
Definition and Usage
The columnRuleWidth property specifies the width of the rule between columns.
Browser Support
Property | |||||
---|---|---|---|---|---|
columnRuleWidth | Yes | 10.0 | Not supported Use MozColumnRuleWidth |
Yes | Yes |
Syntax
Return the columnRuleWidth property:
object.style.columnRuleWidth
Set the columnRuleWidth property:
object.style.columnRuleWidth = "medium|thin|thick|length|initial|inherit"
Property Values
Value | Description |
---|---|
medium | Default value. Defines a medium rule |
thin | Defines a thin rule |
thick | Defines a thick rule |
length | Specifies the width of the rule |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Technical Details
Default Value: | medium |
---|---|
Return Value: | A String, representing the column-rule-width property of an element |
CSS Version | CSS3 |
Related Pages
CSS3 tutorial: CSS3 Multiple Columns
CSS reference: column-rule-width property
❮ Style Object