Row-rule-color - CSS Property
Summary of characteristics of the row-rule-color property
currentcolorComputed value: during an animation, the row-rule-color property gradually changes from one value to another.Per grammar: serialization in the order of syntax.Syntax diagram of row-rule-color.
row-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 standardized name of a color. See Color chart.#xxxxxxis the hexadecimal code of a color (3, 6, or 8 digits).coloris a color defined by one of the syntaxes recognized by CSS, or one of the color functions:rgb()orrgba(),hsl()orhsla(),hwb(),lab(),oklab(),lch(),oklch(),color(),color-mix().- Multiple colors can be listed, separated by a comma.
Description of the row-rule-color property.
row-rule-color sets the color of the line separator. These separators are found between the rows in a grid container, a flex-box container,
or any other container that has rows. They sit in the space between the rows (defined by row-gap) without increasing the height.
Also refer to the equivalent property for columns: column-rule-color, and to the shorthand property row-rule.
You can also check out an overview of rule.
Values for row-rule-color.
- row-rule-color: #ff1852;
The line between the rows will be the indicated color. This can be expressed in any of the CSS-recognized syntaxes: hexadecimal code, named color, color function, etc.
The default value is
currentColor(the text color).ABCDEFGHIJKLMNOPQRSTUVWXYZrow-rule-color:lightBlue; - row-rule-color: #ff1852, black; row-rule-color: repeat(3, red), blue, green;
Several values can be listed, separated by a comma. Each of these values applies to one of the line separators. If there are more separators than lines, the list of values starts over from the beginning.
Therepeat()function is accepted here. Check its description for more information on its syntax.ABCDEFGHIJKLMNOPQRSTUVWXYZrow-rule-color:red, blue, green; - row-rule-color: initial; (
currentcolor) row-rule-color: inherit; row-rule-color: revert; row-rule-color: revert-layer; row-rule-color: revert-rule; row-rule-color: unset;Common values are presented on these pages:
initial,inherit,revert,revert-layer,revert-rule,unset.
Animation of the row-rule-color property.
The property row-rule-color can be animated and the animations are smooth (like all properties that expect a color).
Below, we have created the animation of row-rule-color on a grid.
Simulator.
With this simulator, built on a flex-box container, you can choose a color to apply to row-rule-color and also adjust the container's dimensions.
Browsers compatibility with row-rule-color.
The row-rule-color property is still poorly recognized: only and browsers recognize it.
row-rule-color property, which sets the color of row separators in a grid container, flexbox, etc.row-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 row-rule-color property.
-
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.
Regardingrow-rule-colorExtension of the propertycolumn-rule-colorto apply it to spaces between lines, in a grid or a flexbox.April 17, 2025Working Draft.
See also, about space decorations.
A specification module was specially created to define the grids between rows and columns in all containers that display rows and columns: CSS Gap Decorations Module.. The following properties are set in this module.



