CSS3 column-ruleProperty


Example

Specify the rule between columns: width, style, and color:

div
{
column-rule:3px outset #ff00ff;
-moz-column-rule:3px outset #ff00ff; /* Firefox */
-webkit-column-rule:3px outset #ff00ff; /* Safari and Chrome */
}

Try it Yourself »
More examples at the bottom of this page.

Browser Support

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

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

Property
column-rule 50.0
4.0 -webkit-
10.0 2.0 -moz- 9.0
3.1 -webkit-
37.0
15.0 -webkit
11.1

Attribute definition and usage instructions

column-rule property

The column-rule property is a shorthand property for setting all the column-rule-* properties. The column-rule property sets the width, style, and color of the rule between columns.

Default Value: medium none black
Inherited: no
version: CSS3
JavaScript Syntax: object.style.columnRule="3px outset #ff00ff"


Syntax

column-rule: column-rule-width column-rule-style column-rule-color;

Value Description
column-rule-width Set the width rule between columns
column-rule-style Set the style rule between columns
column-rule-color Set the color rule between columns


Examples

More Examples

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

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


Related Articles

CSS3 Tutorial:CSS3 Multiple Columns

other extensions