CSS Portal

CSS column-rule-width Property

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The column-rule-width property controls the thickness of the rule drawn between the columns of a multi-column element. In a layout that uses multiple columns, the rule appears between every adjacent pair of columns inside the same generating box; adjusting the rule width changes how bold or subtle that separator looks without changing the number of columns or their computed widths. Because it only affects the visible separator, it is often used purely for visual rhythm and hierarchy - for example, to make columns read as a single unit or to clearly delineate separate streams of content.

This property is intended to be used together with the other column-rule properties that determine the rule’s overall appearance: the rule’s stroke pattern comes from column-rule-style and its color from column-rule-color, and the three can also be set together via the shorthand column-rule. When you change the width, the visual weight of the rule changes immediately; combining a heavier width with a strong color or solid style produces a much stronger divider than a light width paired with a subtle color or dotted style.

From a rendering and layout perspective, the rule is painted in the inter-column gutter (the area between columns) and does not alter the computed widths of the columns themselves. It is repeated for every gap inside the same multicolumn container and is normally clipped to the fragment boxes created by column breaks and other layout constraints. Because the rule is part of the painting phase, very thin rules may appear as hairlines on high-DPI displays while thick rules may visually intrude toward column content if the gap is narrow, so designers should balance rule width against the column-gap.

In practical use, you’ll often adjust column-rule-width to improve legibility or to create a specific editorial aesthetic - for instance, a magazine-like layout with bold separators versus a subtle newspaper-style layout with faint rules. Be aware that rules will not continue across elements that disrupt the column flow: elements that span the full measure (created with column-span) or other forced breaks will interrupt the rule rendering. Finally, consider how the rule interacts with backgrounds, stacking contexts and printing: a rule that looks crisp on screen may need slight adjustments for print output or when layered over complex backgrounds.

Definition

Initial value
medium
Applies to
Multi-column elements
Inherited
No
Computed value
absolute length; '0' if the column rule style is 'none' or 'hidden'
Animatable
No
JavaScript syntax
object.style.columnRuleWidth

Interactive Demo

The rusty swing set creaked a lonely lullaby in the twilight, shadows lengthening like grasping fingers across the dew-kissed grass. A lone dandelion seed, adrift on the breeze, whispered secrets of faraway fields, of dandelion suns and galaxies spun from fluff. Somewhere, beyond the veil of dusk, a coyote laughed, echoing through the stillness like a forgotten memory.

Syntax

column-rule-width: <border-width>

Values

  • <border-width>Is a <length> or one of the thin, medium or thick keyword describing the width of the rule separating two columns.

Example

<div class='wrap'>
<h2>Column Rule Width Example</h2>
<div class='multi-column'>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vitae eros at urna tincidunt feugiat. Integer sit amet arcu sed nisl aliquet facilisis. Curabitur hendrerit, lacus vel pulvinar bibendum, magna arcu gravida lacus, sed tincidunt erat lorem non lorem.</p>
<p>Phasellus faucibus, arcu ut volutpat consequat, ipsum sapien cursus diam, non posuere mauris lectus eu odio. Sed quis velit vel lectus cursus tristique. Proin non risus sit amet nisl tincidunt luctus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;</p>
<p>Suspendisse potenti. Integer vitae nibh at sapien convallis placerat. Aliquam erat volutpat. Aenean ac elit nec mi volutpat luctus. In hac habitasse platea dictumst.</p>
</div>
</div>
.wrap {
  max-width: 960px;
  margin: 40px auto;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #1a202c;
}

h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
}

.multi-column {
  column-count: 3;
  column-gap: 24px;
  column-rule-style: solid;
  column-rule-color: #2b6cb0;
  column-rule-width: 6px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 8px;
}

.multi-column p {
  margin: 0 0 16px 0;
  line-height: 1.6;
}

Browser Support

The following information will show you the current browser support for the CSS column-rule-width property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 1st January 2026

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!