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

CSS3 column-rule-style property

CSS3 column-rule-style property

Example

Specify the style of the rule between columns:

div

{

column-rule-style:dotted;

-moz-column-rule-style:dotted; /* Firefox */

-webkit-column-rule-style:dotted; /* Safari and Chrome */

}

Try it »

There are more examples at the bottom of this page.


Browser support

The numbers in the table indicate the first browser version that supports this property.

A number immediately before -webkit-, -ms-, or -moz- indicates the first browser version that supports that prefixed property.

property
column-rule-style 50.0
4.0 -webkit- 10.0 2.0 -moz- 9.0
3.1 -webkit- 37.0
 15.0 -webkit       

 11.1 |


Property definition and usage

The column-rule-style property specifies the style of the rule between columns.

Default value: none
Inherited: no
Version: CSS3
JavaScript syntax: object.style.columnRuleStyle="dotted"

Syntax

column-rule-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset;

Value Description
none 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 Defines a 3D grooved rule. The effect depends on the width and color values.
ridge Defines a 3D ridged rule. The effect depends on the width and color values.
inset Defines a 3D inset rule. The effect depends on the width and color values.
outset Defines a 3D outset rule. The effect depends on the width and color values.

More examples

Column-count
Divide the text of a div element into three columns.

Column-gap
Divide the text in a div element into three columns and specify a 30-pixel gap between the columns.

Column-rule
Specify the rule between columns: width, style, and color.


Related Articles

CSS3 tutorial: CSS3 Multiple Columns