CSS column-rule
The CSS column-rule property is used to set the style, color, and width of the rule between columns in a multi-column layout.
Syntax:
.column-rule {
column-rule: style color width;
}
style can be one of the following values:
- dotted
- dashed
- solid
- double
- groove
- ridge
- inset
- outset
- none
- hidden
color specifies the color of the rule, and width determines the width of the rule.
Example:
In the above example, we have created a multi-column layout with 3 columns. The column rule is set to a red dotted line with a width of 2px.
By using the CSS column-rule property, you can customize the appearance of the rule between columns in your multi-column layout.