Style columnRule Property
Example
Specifies the width, style, and color rules between columns:
document.getElementById("myDIV").style.columnRule="3px outset blue";
Try it »
Definition and Usage
The columnRule property is a shorthand property used to set all columnRule* properties.
The columnRule property sets the width, style, and color rules between columns.
Browser support

Internet Explorer 10 and Opera support the columnRule property.
Firefox supports an alternative property to this one, namely the MozColumnRule property.
Safari and Chrome support an alternative property to this one, namely the WebkitColumnRule property.
Syntax
Return the columnRule property:
object
.style.columnRule
Set the columnRule property:
object
.style.columnRule="
column-rule-width column-rule-style column-rule-color
|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| columnRuleWidth | Sets the width rule between columns. The default value is medium. |
| columnRuleStyle | Sets the style rule between columns. The default value is none. |
| columnRuleColor | Sets the color rule between columns. The default value is the element's color. |
| initial | Sets this property to its default value. See initial. |
| inherit | Inherits this property from its parent element. See inherit. |
Technical Details
| Default value: | medium none color |
|---|---|
| Return Value: | A string that represents the column-rule property of an element. |
| CSS version | CSS3 |
Related Articles
CSS3 Tutorial:CSS3 Multiple Columns
CSS Reference Manual:column-rule property
The Style object