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

HTML DOM Style columnRuleStyle Property

Style columnRuleStyle Property

Style Object Reference The Style object

Example

Change the style rule between columns:

document.getElementById("myDIV").style.columnRuleStyle="dotted";

Try it »


Definition and Usage

The columnRuleStyle property specifies the style rule between columns.


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Internet Explorer 10 and Opera support the columnRuleStyle property.

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

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


Syntax

Return the columnRuleStyle property:

object

.style.columnRuleStyle

Set the columnRuleStyle property:

object

.style.columnRuleStyle="none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|

initial|inherit"

Attribute values

Value Description
none Default value. Defines no rule.
hidden Defines a hidden rule.
dotted Defines a dotted rule.
dashed Defines a dashed rule.
solid Defines a solid rule.
double Defines a double rule.
groove Specifies a 3D grooved rule. The effect depends on the width and color values.
ridge Specifies a 3D ridged rule. The effect depends on the width and color values.
inset Specifies a 3D inset rule. The effect depends on the width and color values.
outset Specifies a 3D outset rule. The effect depends on the width and color values.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical Details

Default value: none
Return Value: A string that represents the column-rule-style property of an element.
CSS version CSS3

Related Articles

CSS3 Tutorial:CSS3 Multiple Columns

CSS Reference Manual:column-rule-style property


Style Object Reference The Style object