Column-rule-color - CSS Property
Summary of characteristics of the column-rule-color property
currentcolor | transparentcurrentcolorComputed value: during an animation, the column-rule-color property gradually changes from one value to another.Per grammar: serialization in the order of syntax.Syntax diagram of column-rule-color.
column-rule-color property.The links in the diagram provide more details about the values.
Download the diagram in SVG.
In the diagram, the bold terms are the predefined words of CSS, the other terms are described below:
color-nameis the name of a color (see Color chart).#xxxxxxis the hexadecimal code of a color.coloris a color defined by one of the syntaxes recognized by CSS. See Colors.- The syntax can be repeated by separating the values with a comma.
Description of the column-rule-color property.
column-rule-color sets the color of the dividing lines between columns (rule) in layouts with multiple columns, grids, flex-boxes, etc.
Note: Table columns are not affected by this property.
The description of the column-rule-color property has been moved to the cross-module CSS Gap Decorations. As soon as browsers implement this feature,
the property will apply to both multi-column containers and grid or flex containers.
For a more general description of the parameters of the separator line between columns, refer to the shorthand property column-rule.
For a general overview of column layout options, see the page columns.
For a summary on rules, see the page on rule.
Values for column-rule-color.
- column-rule-color: currentColor;
The color of the column separator line will be the same as the text for the element in question.
Multi-columnsIn typography, a rule is a line of variable thickness that accompanies text or images to highlight and distinguish them, for example, to separate columns.column-rule-color:currentColor;
on a multi-column container.Flex-boxABCDEFGHIJKLMNOPQcolumn-rule-color:currentColor;
on a flex-box container. - column-rule-color: transparent;
The column separator will be transparent, meaning invisible. Since dividers don't push other elements away, it's like there's no divider at all.
Multi-columnsIn typography, a rule is a line of variable thickness that accompanies text or images to highlight and distinguish them, for example, to separate columns.column-rule-color:transparent;
on a multi-column container.Flex-boxABCDEFGHIJKLMNOPQcolumn-rule-color:transparent;
on a flex-box container. - column-rule-color: #ff8018;
The expression of a color in one of the syntaxes recognized by CSS: hexadecimal code, color name, one of the many CSS functions, etc.
Refer to the following pages for more details: Colors,
rgb()orrgba(),hsl()orhsla(),hwb(),lab(),oklab(),lch(),oklch(),color(),color-mix().Multi-columnsIn typography, a rule is a line of variable thickness that accompanies text or images to highlight and distinguish them, for example, to separate columns.column-rule-color:#ff8018;
on a multi-column container.Flex-boxABCDEFGHIJKLMNOPQcolumn-rule-color:green;
on a flex-box container. - column-rule-color: blue, red, green; ⚠ column-rule-color: repeat(4, blue), red; ⚠
Several colors are specified. They are applied in order to the different separation lines. If there are more separation lines than colors, the list starts over from the beginning.
You can also use therepeat()function if there are many separation lines.This possibility is not yet supported by and other browsers.
Multi-columnsIn typography, a rule is a line of variable thickness that accompanies text or images to highlight and distinguish them, for example, to separate columns.column-rule-color:blue, red;
on a multi-column container.Flex-boxABCDEFGHIJKLMNOPQcolumn-rule-color:blue,red;
on a flex-box container. - column-rule-color: initial; (
currentcolor) column-rule-color: inherit; column-rule-color: revert; column-rule-color: revert-layer; column-rule-color: revert-rule; column-rule-color: unset;See the following pages for more details:
initial,inherit,revert,revert-layer,revert-rule,unset.
Animation of the column-rule-color property.
column-rule-color can be animated very smoothly.
In this example, the color of the dividing line changes from black to white, passing through blue.
Color animation can also be done using
rgb(), hsl(), etc.
Check out the page for the property color for more examples of color animation.
Simulator.
The interactive example below is given for a multi-column container and for a grid container. The latter will only work on certain browsers like or .
(1) Text from Wikipedia
Browsers compatibility with column-rule-color.
Multi-column layouts are pretty well supported by current browsers. However, the table below shows that some incompatibilities remain. That said,
the column-rule-color property is properly recognized for multi-column containers. But its support for grid or flex-box containers still leaves
something to be desired (2026). This isn’t shown in the table.
column-rule-color property to set the color of column separator lines in a grid, flex-box, etc.Notes:
(1) Does not support the values avoid (in the column context), avoid-column, and avoid-page for the properties break-after, break-before, and break-inside.
layout
column-rule-colorproperty
Browsers on computers :
Mobile browsers :
Outdated or marginal browsers :

Internet Explorer

UC Browser pour Androïd

Opéra Mobile

QQ Browser

Baidu Browser

Safari

Safari sur IOS

Opéra

Chrome

Edge

Firefox

Chrome pour Androïd

Samsung Internet

Androïd Brower

Firefox pour Androïd

KaiOS Browser

Opéra mini
Historic of the column-rule-color property.
-
CSS Multi-column Layout Module Level 1
This specification describes multi-column layout. It is enough to set the number of columns on the container, and the content will be arranged across the specified number of columns. Of course, other properties allow finer control over multi-column containers.
This specification also defines properties concerning the space between columns and any possible dividing line.Regardingcolumn-rule-colorIntroduced multi-column layouts and related properties, such ascolumn-rule-color.June 23, 1999Working Draft.December 17, 2009Candidate Recommendation. -
CSS Gap Decorations Module Level 1.
This module covers the rules that define gutters between columns in a multi-column container (grid, flex-box...). It extends these possibilities to gutters between elements arranged in multiple rows, allowing these features to be used on other types of containers. Several properties define how these gutters should be drawn.
Regardingcolumn-rule-colorThe propertycolumn-rule-colorwas introduced in the Gap Decorations module, which will extend its use to grid and flexbox containers.April 17, 2025Working Draft.
See also, about column layouts.
Multi-column layouts are described in the specification CSS Multi-column Layout Module.
The column-rule-color property is referenced in this module, as well as the terms below:
Properties:




