CKTIS / CSS
column-rule-style — the style of the line between columns
The column-rule-style property sets the separator pattern between columns, such as solid, dotted, or dashed. It does not set spacing or color; its initial value, none, means there is no visible rule.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
column-rule-style: <line-style>;
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
/* CSS Gaps Module Level 1 */
column-rule-style: <line-style-list> | <auto-line-style-list>;column-rule-style sets the separator style, not a border around each column. In multi-column layout, the rule is centered in column-gap and takes up no additional space. column-rule-width sets its thickness and column-rule-color its color; the column-rule shorthand sets all three properties.
The initial value is none; the property is not inherited and animates discretely. The basic syntax accepts one <line-style> keyword. none and hidden draw no separator; in the CSS Multicol definition, they force the computed width to 0.
The sources describe different scopes: CSS Multicol 2 defines a single style for multi-column containers. The CSS Gaps 1 draft extends applicability to Grid, Flexbox, and grid lanes and adds comma-separated lists and repeat(). This specification extension is not evidence of browser support; it needs separate verification.
The example deliberately uses a single solid value. Expect A–D in the left column, E–H in the right, and a black 4px rule centered in the 24px gap. Changing the style to none should remove the rule without moving the columns.
Examples
<!doctype html>
<meta charset="utf-8">
<title>column-rule-style</title>
<style>
.columns {
width: 320px;
height: 80px;
column-count: 2;
column-gap: 24px;
column-fill: auto;
column-rule-width: 4px;
column-rule-style: solid;
column-rule-color: #000;
font: 16px/20px monospace;
}
</style>
<div class="columns">A<br>B<br>C<br>D<br>E<br>F<br>G<br>H</div>Result
Left column: A, B, C, D. Right column: E, F, G, H. A solid black 4px rule is centered in the 24px gap.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.