Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

column-rule-width — thickness of the line between columns

The column-rule-width property sets the thickness of a column separator, not the spacing between columns. A visible line also requires a suitable column-rule-style. The newer CSS Gaps draft extends the syntax and applicability; those extensions must not be treated as verified browser support.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

/* Single width (multicol) */
column-rule-width: <length [0,∞]> | thin | medium | thick;

/* CSS Gaps Level 1 draft */
column-rule-width: <line-width-list> | <auto-line-width-list>;

/* CSS-wide keywords */
column-rule-width: inherit | initial | unset | revert | revert-layer;

column-rule-width controls separator thickness. In a multicolumn layout, the line is centered in the column-gap and takes up no additional space. Increasing its thickness does not widen the gap; an excessively wide line can overlap column content.

The basic value is a nonnegative length, such as 4px, or thin, medium, or thick. Percentages and negative values are invalid. The initial value is medium; the property is not inherited. The keywords do not guarantee particular pixel widths. Use an explicit length when you need predictable thickness.

Width alone is insufficient: the initial column-rule-style: none draws no line. Set a style such as solid and an appropriate column-rule-color. The column-rule shorthand sets all three components, resetting omitted components to their initial values.

The sources describe different specification stages. CSS Multi-column Level 2 defines a single width and a computed value of 0 for styles none and hidden. The newer CSS Gaps draft removes that zeroing rule, permits comma-separated lists and repeat(), and also covers grid, flex, and grid lanes containers. These are draft extensions, not confirmation of Chromium 152 support; the example deliberately uses a single width in multicolumn layout.

Examples

<!doctype html>
<meta charset="utf-8">
<title>column-rule-width</title>
<style>
  .columns {
    width: 320px;
    column-count: 2;
    column-gap: 24px;
    column-rule-style: solid;
    column-rule-color: black;
    column-rule-width: 4px;
    font: 16px/24px monospace;
  }
  .next { break-before: column; }
</style>
<div class="columns"><div>A<br>B</div><div class="next">C<br>D</div></div>

Result

Two columns: A and B on the left, C and D on the right. A solid black 4 CSS px rule is centered in the 24 CSS px 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.

Sources