CKTIS / CSS
column-rule — a line between columns
column-rule sets the width, style, and color of a separator between columns. The line is decorative: it neither creates columns nor increases the gap between them.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
/* Single-rule syntax (CSS Multicol) */
column-rule: <'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>;
/* Extended syntax (CSS Gaps draft) */
column-rule: <gap-rule-list> | <gap-auto-rule-list>;
/* Example */
column-rule: 2px solid #245;column-rule is shorthand for column-rule-width, column-rule-style, and column-rule-color. Components can appear in any order; omitted components reset to their initial values: medium, none, currentColor. Setting only column-rule: 2px produces no visible line because the style resets to none.
In multi-column layout, the separator is centered in column-gap. It takes up no space; a rule wider than the gap can extend underneath column content. Create columns separately, for example with column-count. The property is not inherited.
The CSS Gaps draft extends applicability to Grid and Flexbox and adds comma-separated rule lists and repeat(). This is a specification extension, not confirmation of browser support. The example uses a single rule in multi-column layout; it still requires local verification in the target Chromium 152 environment.
Examples
<!doctype html>
<meta charset="utf-8">
<title>column-rule</title>
<style>
.columns {
width: 360px;
column-count: 2;
column-gap: 24px;
column-rule: 2px solid #245;
font: 16px/24px monospace;
}
.next { break-before: column; }
</style>
<div class="columns"><div>Alpha<br>Beta</div><div class="next">Gamma<br>Delta</div></div>Result
Two 168px-wide columns separated by a 24px gap. Alpha and Beta appear in the first column; Gamma and Delta appear in the second. A 2px solid #245 rule is centered in the 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.