Row-rule-width - CSS Property
Summary of characteristics of the row-rule-width property
medium | thin | thickmediumComputed value: during an animation, the row-rule-width property gradually changes from one value to another.Per grammar: serialization in the order of syntax.Syntax diagram of row-rule-width.
row-rule-width 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:
widthis a positive or zero numerical value followed by a CSS dimension units.- You can repeat the value by separating it with a comma.
Description of the row-rule-width property.
row-rule-width sets the thickness of the borders between lines, in a grid or a flex-box. This can be a predefined value or a numeric value.
It is possible to give multiple values (separated by commas).
The thickness of the line doesn't add to the gap width (defined by row-gap): adding a line doesn't space the rows any further.
This property is exactly the opposite of column-rule-width. Also see shorthand property row-rule. For a summary on gap decorations, see rule.
Values for row-rule-width.
⚠ The examples still don't work on (2026).
- row-rule-width: 3px;
A positive number or zero, followed by a unit of dimension (see CSS dimension units). The following predefined values can also be used (the numérical equivalents may differ slightly from one browser to another):
thin: about 1 pixel.medium: about 4 pixels (initial value).thick: about 5 pixels.
ABCDEFGHIJKLMNOPQRSTUVWXYZrow-rule:medium; - row-rule-width: 3px, 6px, 15px; row-rule-width: repeat(3, thin), medium;
A list of comma-separated values. Each value is assigned to a horizontal stripe. If the number of stripes is greater than the number of values, the list starts over from the beginning. The
repeat()function is accepted, especially useful when the number of stripes is large.ABCDEFGHIJKLMNOPQRSTUVWXYZrow-rule:repeat(2, thin), 6px; - row-rule-width: initial; (
medium) row-rule-width: inherit; row-rule-width: revert; row-rule-width: revert-layer; row-rule-width: revert-rule; row-rule-width: unset;Common values are presented on these pages:
initial,inherit,revert,revert-layer,revert-rule,unset.
Animation of the row-rule-width property.
We’re offering you an animation on a flex container and another on a grid container.
Simulator.
The example below is built on a flexbox. Besides choosing the value for row-rule-width, you can adjust the size of the container.
Browsers compatibility with row-rule-width.
For now (2026), only , , and a few other browsers handle this row-rule-width property correctly.
row-rule-width property, which sets the thickness of the row separators in a grid, flex-box, etc.row-rule-widthproperty
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-width 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-widthExtension of the propertycolumn-rule-widthto define the thickness of the separating lines, in the context of a grid container or a flex-box container.April 17, 2025Working Draft.
See also, about gap decorations.
The newly created CSS Gap Decorations Module. sets all the properties related to decorative borders, in the context of a grid container, flex-box, or any other container that displays blocks in rows or columns. These properties are the following:



