CSS3 column-rule-width property
Example
Specify the width of the rule between columns:
div
{
webkit-column-rule-width:
1
px
;
/*
Chrome, Safari, Opera
*/
moz-column-rule-width:
1
px
;
/*
Firefox
*/
column-rule-width:
1
px
;
}
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-width | 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-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 | Specifies a thin border rule |
| medium | Defines a medium border rule |
| thick | Specifies a thick border rule |
| length | Specifies the width of the rule |
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