In this section, we will learn what column-rule-width property is and how to use it in CSS.
CSS column-rule-width Property Definition and Usage
The CSS `column-rule-width` property is used to set the width of the line between each column that is created via the `column-count` property.
Note: before you can use this property, you need to set the style for this line using the `column-rule-style` property.
CSS column-rule-width Property Syntax
CSS column-rule-width Property Value
The value we set for this property is a number with any supported CSS units. Basically, the higher value we set for this property means the thicker the target line should be.
We could also use these keywords as well:
- medium: this value means the target line should have a medium width.
- thin: this value means the target line should have a thin width.
- thick: this value means the target line should have a thick width.
Example: column-rule-width property in CSS
How Does CSS column-rule-width Property Work?
In this example, the value of the column-rule-width property is set to 10px which means the width of each line between columns should be equal to 10px.