CSS column-rule-width Property

Description

The column-rule-width property sets the width of the rule between columns. Negative values are not allowed.

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
No
CSS Version
CSS3
JavaScript syntax
object.style.columnRuleWidth

Syntax

column-rule-width: <border-width>

Values

  • <border-width>Is a <length> or one of the thin, medium or thick keyword describing the width of the rule separating two columns.

Example

<div class="book">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
.book { 
   columns: 3 200px; 
   -webkit-columns: 3 200px; 
   -moz-columns: 3 200px; 
   column-rule-color: red; 
   -webkit-column-rule-color: red; 
   -moz-column-rule-color: red; 
   column-rule-style: dashed; 
   -webkit-column-style: dashed; 
   -moz-column-rule-style: dashed; 
   column-rule-width: 2px; 
   -webkit-column-rule-width: 2px; 
   -moz-column-rule-width: 2px; 
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
1012505211.19
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
50505211.195.0

Last updated by CSSPortal on: 26th October 2019