CSS3 column-rule-widthProperty
Example
Specify the width rule between columns:
div {
-webkit-column-rule-width: 1px; /* Chrome, Safari, Opera */
-moz-column-rule-width: 1px; /* Firefox */
column-rule-width: 1px;
}
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 the property.
Numbers followed by -webkit-, -ms-, or -moz- indicate the first browser version that supports the prefixed property.
| Property | |||||
|---|---|---|---|---|---|
| column-rule-width | 50.0 4.0 -webkit- |
10.0 | 2.0 -moz- | 9.0 3.1 -webkit- |
37.0 15.0 -webkit 11.1 |
Property definitions and usage instructions.
The column-rule-width property specifies the width of the rule between columns.
| Default Value: | medium |
|---|---|
| Inherited: | no |
| version: | CSS3 |
| JavaScript Syntax: | object.style.columnRuleWidth="thin" |
Syntax
column-rule-width: thin|medium|thick|length;
| Value | Description |
|---|---|
| thin | Specify a thin border rule. |
| medium | Define a medium border rule. |
| thick | Specify a thick border rule. |
| length | Rules for specifying width |
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 rule between columns: width, style, and color.
Related Articles
CSS3 Tutorial:CSS3 Multi-column
other extensions