column-rule-width
Summary
Specifies the width of the rule between columns.
Overview table
- Initial value
medium- Applies to
- multi-column elements
- Inherited
- No
- Media
- visual
- Computed value
- absolute length; ‘0’ if the column rule style is ‘none’ or ‘hidden’
- Animatable
- Yes
- CSS Object Model Property
columnRuleWidth- Percentages
- N/A
Syntax
column-rule-width: 0column-rule-width: mediumcolumn-rule-width: thickcolumn-rule-width: thincolumn-rule-width: width
Values
- medium
- Default. A medium width border.
- thin
- Width less than the default.
- thick
- Width greater than the default.
- width
- Width consisting of a floating-point number, followed by an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx) - 0
- If the column rule style is ‘none’ or ‘hidden’
Examples
Makes 3 columns with 4px dashed green column-rule.
/*
Makes 3 columns with 4px dashed green column-rule
*/
#columns {
columns: 3;
/* Prefix free example below, use vendor prefixes where needed */
column-rule-style: dashed;
column-rule-color: green;
column-rule-width: 5px;
}
Usage
* Negative length values are not allowed.
Notes
The exact thickness of the column rule when using the medium, thin, or thick value is user agent dependent, and is not defined in the specification.
Related specifications
- CSS Multi-column Layout Module
- W3C Candidate Recommendation
See also
Related articles
Multi-Column
column-rule-width
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]