The column-rule
property is shorthand for column-rule-width
, column-rule-style
, and column-rule-color
.
This property sets the width, style, and color of the rule between columns, If column-rule-color
is omitted, the color of the text is applied.
div.ex {
column-rule: 3px groove #e1e1e1;
}
column-rule-width
Designates the width of the rule between columns. Default value is medium.
column-rule-style
Designates the style of the rule between columns. Default value is none.
column-rule-color
Designates the color of the rule between columns. Default value is the color of the element.
initial
Sets the property to its default value.
inherit
Inherits this property’s value from its parent item.
Have a code example of column-rule
? Submit a codepen.io demo and we'll showcase it here ↴