CSS column-rule-width Property

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 4 Examples
Layout & Columns

What You’ll Learn

The column-rule-width property controls how thick the divider line is between columns in a multi-column layout.

01

Rule Width

Line thickness.

02

Longhand

Part of column-rule.

03

Default medium

Browser default.

04

Keywords

thin, medium, thick.

05

Length Units

px, em, rem.

06

Visual Split

Stronger separation.

Definition and Usage

The column-rule-width CSS property specifies the width of the rule (line) between columns in a multi-column layout. It helps enhance visual separation between columns, making content more readable and aesthetically pleasing.

Use it alongside column-rule-style and optionally column-rule-color on a container with column-count or column-width. Length values like px, em, and rem give precise control; keywords like thin and thick match familiar border-width behavior.

💡
Beginner Tip

Width alone does not create a visible rule — set column-rule-style to solid (or another style) and ensure you have column-gap space between columns.

📝 Syntax

The syntax for column-rule-width accepts keyword or length values:

syntax.css
selector {
  column-rule-width: value;
}

Basic Example

column-rule-width-5px.css
.columns {
  column-count: 3;
  column-rule-width: 5px;
  column-rule-style: solid;
  column-rule-color: black;
}

Here, value can be a length such as px, em, rem, or a keyword like thin, medium, or thick.

Syntax Rules

  • The initial value is medium.
  • Accepts the same keyword and length values as border-width.
  • Requires a non-none column-rule-style for a visible line.
  • Part of the column-rule shorthand: column-rule: 5px solid black;.
  • Wider rules need enough column-gap so the line does not feel cramped.

⚡ Quick Reference

QuestionAnswer
Initial valuemedium
Applies toMulti-column containers
InheritedNo
AnimatableNo
Common use1px–5px solid dividers between text columns

💎 Property Values

The column-rule-width property accepts border-width keywords and length values.

ValueDescription
thinA thin rule width.
mediumA medium rule width (default).
thickA thick rule width.
lengthA specific width value, such as 2px, 0.1em, 0.15rem, etc.

Longhand in the column-rule Family

PropertyControls
column-rule-widthThickness of the divider line (this property)
column-rule-styleLine style (solid, dashed, none, etc.)
column-rule-colorLine color
column-ruleShorthand for all three

👀 Live Preview

Each mini layout uses a solid black rule with a different column-rule-width — 1px, 3px, and 5px.

1px
Sample text split across two columns with a thin 1px divider between them.
3px
Sample text split across two columns with a medium 3px divider between them.
5px
Sample text split across two columns with a thick 5px divider between them.

Examples Gallery

Try a 5px rule, thin and thick keywords, and a responsive em-based width.

📐 Length-Based Widths

Start with the reference example — a 5px solid black column rule on three columns.

Example 1 — 5px Column Rule Width

Define a rule width of 5px between three columns with solid black style.

column-rule-width-5px.html
<style>
  .columns {
    column-count: 3;
    column-rule-width: 5px;
    column-rule-style: solid;
    column-rule-color: black;
  }
</style>

<div class="columns">...</div>
Try It Yourself

How It Works

column-rule-width: 5px makes each divider noticeably thicker than a default 1px border-style line.

🛠 Keyword Widths

Use thin and thick keywords for quick, browser-defined rule thicknesses.

Example 2 — thin Column Rule Width

Apply the thin keyword for a lightweight column separator.

column-rule-width-thin.css
.thin-rule {
  column-count: 2;
  column-gap: 2rem;
  column-rule-width: thin;
  column-rule-style: solid;
  column-rule-color: #64748b;
}
Try It Yourself

How It Works

thin maps to a browser-defined narrow width, similar to border-width: thin.

Example 3 — thick Column Rule Width

Use thick for a bold column divider without specifying pixels.

column-rule-width-thick.css
.thick-rule {
  column-count: 2;
  column-gap: 2.5rem;
  column-rule-width: thick;
  column-rule-style: solid;
  column-rule-color: #1e293b;
}
Try It Yourself

How It Works

thick gives a bolder separator — useful for magazine-style layouts with strong column breaks.

Example 4 — Responsive em-Based Width

Use em so the rule scales with the container’s font size.

column-rule-width-em.css
.responsive-rule {
  font-size: 1rem;
  column-count: 3;
  column-gap: 1.5em;
  column-rule-width: 0.1em;
  column-rule-style: solid;
  column-rule-color: #94a3b8;
}
Try It Yourself

How It Works

0.1em keeps the divider proportional to text size — helpful for responsive typography.

🧠 How column-rule-width Works

1

Column rule enabled

Set column-rule-style to a visible style like solid.

Prerequisite
2

You set column-rule-width

Choose a keyword or length such as 5px or thin.

CSS rule
3

Browser renders thickness

The divider in each column gap uses your specified width.

Rendering
=

Sized column dividers

Columns are separated with a rule at exactly the thickness you chose.

Modern Browser Support

The column-rule-width property is supported in most modern browsers, including Chrome, Firefox, Safari, Edge, and Opera.

Baseline · Modern browsers

Column rule widths everywhere

All major browsers support column-rule-width as part of the Multi-column Layout module.

97% Modern browser support
Google Chrome 50+ · Desktop & Mobile
Full support
Mozilla Firefox 52+ · Desktop & Mobile
Full support
Apple Safari 9+ · macOS & iOS
Full support
Microsoft Edge 12+ · All versions
Full support
Opera 37+ · Modern versions
Full support
column-rule-width property 97% supported

Bottom line: Use column-rule-width freely for multi-column divider thickness. Prefer px or rem for consistent cross-browser sizing.

Conclusion

The column-rule-width property is a useful tool for creating visually appealing multi-column layouts. By customizing the width of the rule between columns, you can enhance the readability and design of your content.

Experiment with different widths and see how this property can improve the look and feel of your web projects.

💡 Best Practices

✅ Do

  • Use 1px–2px for subtle dividers in body text columns
  • Pair width with column-rule-style: solid for clarity
  • Use rem or em for responsive rule scaling
  • Increase column-gap when using thicker rules
  • Use longhand when changing only width in media queries

❌ Don’t

  • Expect a visible rule with width alone — style must not be none
  • Use very thick rules (5px+) without enough column gap
  • Rely on medium for pixel-perfect designs across browsers
  • Confuse column-rule-width with column-gap
  • Use thick rules on narrow mobile column layouts

Key Takeaways

Knowledge Unlocked

Five things to remember about column-rule-width

Use these points when sizing column divider lines.

5
Core concepts
02

Default medium

Browser default.

Default
🖌 03

Keywords

thin, medium, thick.

Values
📐 04

Length units

px, em, rem.

Tip
🛸 05

Longhand

Part of column-rule.

Syntax

❓ Frequently Asked Questions

column-rule-width sets the thickness of the line drawn between columns in a multi-column layout. It is the longhand width component of the column-rule shorthand.
The initial value is medium, which corresponds to a medium width as defined by the browser's default styling.
thin, medium, and thick are keyword widths similar to border-width. Length values like 2px, 0.1em, or 0.15rem let you set an exact thickness.
Yes. column-rule-width only sets thickness. You also need column-rule-style set to something other than none for a visible divider.
column-gap controls the space between columns. column-rule-width controls how thick the divider line is within that gap.

Practice in the Live Editor

Open the HTML editor, set column-rule-width: 5px with style and color, and preview sized column dividers.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful