CSS column-rule-style Property

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

What You’ll Learn

The column-rule-style property controls how the divider line between columns looks — solid, dashed, dotted, and more.

01

Rule Style

Line appearance.

02

Longhand

Part of column-rule.

03

Default none

No line by default.

04

border-style

Same keyword values.

05

With Width

Needs width + gap.

06

Visual Split

Separate columns clearly.

Definition and Usage

The column-rule-style CSS property specifies the style of the rule (line) between columns in a multi-column layout. It lets you define how the dividing line should appear, with options such as solid, dotted, dashed, and more.

Using this property enhances the visual separation of content in a multi-column layout. Apply it to an element that already uses column-count or column-width, along with column-gap and typically column-rule-width.

💡
Beginner Tip

The default is none, so no divider shows until you set a style like solid and give the rule a width. It uses the same keywords as border-style.

📝 Syntax

The syntax for column-rule-style is applied to a multi-column container:

syntax.css
selector {
  column-rule-style: style;
}

Basic Example

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

Here, style can be any valid border-style value such as none, solid, dotted, dashed, double, groove, ridge, inset, or outset.

Syntax Rules

  • The initial value is none — no rule line is displayed by default.
  • Accepts the same keyword values as border-style.
  • Pair with column-rule-width and column-gap for a visible divider.
  • Part of the column-rule shorthand: column-rule: 2px solid black;.
  • 3D styles (groove, ridge, inset, outset) need sufficient width to appear clearly.

⚡ Quick Reference

QuestionAnswer
Initial valuenone
Applies toMulti-column containers
InheritedNo
AnimatableNo
Common useSolid or dashed dividers between text columns

💎 Property Values

The column-rule-style property accepts standard border-style keywords.

ValueDescription
noneNo rule is displayed between columns.
solidDisplays a solid, single line between columns.
dottedDisplays a dotted line between columns.
dashedDisplays a dashed line between columns.
doubleDisplays a double line between columns.
grooveDisplays a 3D grooved line between columns.
ridgeDisplays a 3D ridged line between columns.
insetDisplays a 3D inset line between columns.
outsetDisplays a 3D outset line between columns.

Longhand in the column-rule Family

PropertyControls
column-rule-widthThickness of the divider line
column-rule-styleLine style (this property)
column-rule-colorLine color
column-ruleShorthand for all three

👀 Live Preview

Each mini layout uses a 2px black rule with a different column-rule-style — solid, dashed, and dotted.

solid
Sample text split across two columns with a solid divider line between them.
dashed
Sample text split across two columns with a dashed divider line between them.
dotted
Sample text split across two columns with a dotted divider line between them.

Examples Gallery

Try solid, dashed, dotted, and double column rule styles on multi-column layouts.

📐 Common Rule Styles

Start with the reference example — a solid black column rule on a three-column layout.

Example 1 — Solid Column Rule Style

Set a solid rule style between three columns with 2px width and black color.

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

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

How It Works

column-rule-style: solid draws a continuous line in each column gap when width and gap are set.

Example 2 — Dashed Column Rule Style

Use a dashed style for a lighter, less formal column separator.

column-rule-style-dashed.css
.dashed-columns {
  column-count: 2;
  column-gap: 2rem;
  column-rule-style: dashed;
  column-rule-width: 1px;
  column-rule-color: #64748b;
}
Try It Yourself

How It Works

Dashed rules break the line into segments, which can feel softer than a solid divider.

🎨 Decorative Rule Styles

Explore dotted and double styles for more distinctive column separators.

Example 3 — Dotted Column Rule Style

Create a subtle dotted line between columns.

column-rule-style-dotted.css
.dotted-columns {
  column-count: 3;
  column-gap: 1.5rem;
  column-rule-style: dotted;
  column-rule-width: 2px;
  column-rule-color: #94a3b8;
}
Try It Yourself

How It Works

Dotted rules use small round dots along the gap — useful for a minimal, magazine-style look.

Example 4 — Double Column Rule Style

Use a double line for a stronger, decorative column separator.

column-rule-style-double.css
.double-columns {
  column-count: 2;
  column-gap: 2.5rem;
  column-rule-style: double;
  column-rule-width: 4px;
  column-rule-color: #1e293b;
}
Try It Yourself

How It Works

Double style needs enough width (typically 3px or more) so both lines render clearly in the gap.

🧠 How column-rule-style Works

1

Multi-column layout

Set column-count and column-gap on the container.

Prerequisite
2

You set column-rule-style

Choose a keyword like solid, dashed, or none.

CSS rule
3

Browser draws the rule

With width and gap set, the divider appears in each column gap using your style.

Rendering
=

Styled column dividers

Content columns are visually separated with your chosen line style.

Modern Browser Support

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

Baseline · Modern browsers

Column rule styles everywhere

All major browsers support column-rule-style 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-style property 97% supported

Bottom line: Use column-rule-style freely for multi-column dividers. Test 3D styles (groove, ridge) if you rely on them for design.

Conclusion

The column-rule-style property is a useful tool for enhancing the appearance of multi-column layouts. By customizing the style of the rule between columns, you can create visually appealing and well-organized content.

Experiment with different styles to find the one that best suits your design needs.

💡 Best Practices

✅ Do

  • Use solid or dashed for clean, readable dividers
  • Set column-rule-width and column-gap alongside style
  • Match rule style to your overall design (formal vs casual)
  • Use longhand when changing only style on hover or media queries
  • Prefer subtle styles that do not overpower body text

❌ Don’t

  • Expect a visible rule with none (the default)
  • Use double with very thin widths — it may not render
  • Rely on 3D styles for critical layout separation
  • Forget that style alone is not enough — width matters
  • Mix heavy decorative rules with dense multi-column text

Key Takeaways

Knowledge Unlocked

Five things to remember about column-rule-style

Use these points when styling column divider lines.

5
Core concepts
02

Default none

No line by default.

Default
🖌 03

border-style

Same keywords.

Values
📐 04

Needs width

Width + gap too.

Tip
🛸 05

Longhand

Part of column-rule.

Syntax

❓ Frequently Asked Questions

column-rule-style sets the line style of the divider between columns in a multi-column layout. It is the longhand style component of the column-rule shorthand.
The initial value is none, which means no visible line appears between columns unless you set a different style.
Yes. column-rule-style accepts the same keyword values as border-style, including solid, dashed, dotted, double, groove, ridge, inset, outset, and none.
For a visible rule, set column-rule-width to a length and optionally column-rule-color. column-rule-style alone with none hides the divider.
column-rule is a shorthand for width, style, and color together. column-rule-style lets you change only the line style without resetting width or color.

Practice in the Live Editor

Open the HTML editor, set column-rule-style: solid with width and color, and preview styled 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