What is the CSS column-rule-color property?

The column-rule-color property in CSSCascade Style Sheets sets or defines the color of the rule between different columns when we are using a multi-column layout.

Syntax


column-rule-color: color|initial|inherit;

Property values

  • color: It sets the color of the rule

  • initial: This sets the value to its default value

  • inherit: This inherits the property from its parent value

Code

The following is the basic HTMLHyperText Markup Language & CSS code to demonstrate the use of the column-rule-color property.

Explanation

In this example, we set the column-rule-color property. We can see that a blue dashed line separates the column, and the size of one dash is set to be 5px.

We can also change the style, color, and width according to our own choice.

Free Resources