CSS3 column-rule-colorProperty
Example
Color rules between specified columns:
div
{
column-rule-color:#ff0000;
-moz-column-rule-color:#ff0000; /* Firefox */
-webkit-column-rule-color:#ff0000; /* Safari and Chrome */
}
{
column-rule-color:#ff0000;
-moz-column-rule-color:#ff0000; /* Firefox */
-webkit-column-rule-color:#ff0000; /* 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 that supports this property.
The number preceding -webkit-, -ms-, or -moz- is the first browser version that supports the prefixed property.
| Property | |||||
|---|---|---|---|---|---|
| column-rule-color | 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
The column-rule-color property specifies the color of the rules between columns.
| Default Value: | black |
|---|---|
| Inherited: | no |
| version: | CSS3 |
| JavaScript Syntax: | object.style.columnRuleColor="#ff00ff" |
Syntax
column-rule-color: color;
| Value | Description | Testing |
|---|---|---|
| color | Rules for specifying colors. InCSS Color ValuesFind the complete list of color values |
More Examples
Column-count
The text of the div element is divided into three columns.
Column-gap
Divide the text in the div element into three columns, and specify a 30-pixel gap between the columns.
Column-rule
Specify the rules between columns: width, style, and color.
Related Articles
CSS3 Tutorial:CSS3 Multiple Columns
other extensions