Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style columnRuleColor Property

Style columnRuleColor Property

Style Object Reference The Style object

Example

Specifies the color rule between columns:

document.getElementById("myDIV").style.columnRuleColor="blue";

Try it »


Definition and Usage

The columnRuleColor property specifies the color rule between columns.


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Internet Explorer 10 and Opera support the columnRuleColor property.

Firefox supports an alternative property to this one, namely the MozColumnRuleColor property.

Safari and Chrome support an alternative property to this one, namely the WebkitColumnRuleColor property.


Syntax

Return the columnRuleColor property:

object

.style.columnRuleColor

Set the columnRuleColor property:

object

.style.columnRuleColor="

color

|initial|inherit"

Attribute values

Value Description
color Specifies the color rule. For a complete list of possible color values, see A CSS color value.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical Details

Default value: The element's current color
Return Value: A string that represents the column-rule-color property of an element.
CSS version CSS3

Related Articles

CSS3 Tutorial:CSS3 Multiple Columns

CSS Reference Manual:column-rule-color property


Style Object Reference The Style object