CSS column-rule-style Property

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The column-rule-style property sets the line style of the divider between columns in a multi-column layout. It is the style longhand of the column-rule shorthand.

The initial value is none, so no rule appears until you choose a visible style such as solid or dashed. Pair it with column-rule-width, column-rule-color, and column-gap. It uses the same keywords as border-style and is not inherited.

Standard-track.

Single-value column-rule-style has been widely available since 2017. Comma-separated lists and repeat() for different gutter styles are newer gap-decoration features with limited support—prefer one style for production.

CSS Syntax

syntax.css
column-rule-style: <line-style> | initial | inherit;

Valid styles include none, hidden, dotted, dashed, solid, double, groove, ridge, inset, and outset.

Property Values

ValueDescriptionTry it
solidA continuous divider between columnsTry it
dashedA dashed dividerTry it
dottedA dotted dividerTry it
doubleTwo parallel lines. Needs enough width to show bothTry it
grooveA carved 3D-looking lineTry it
noneNo rule. Initial value. Width and color alone will not showTry it
initialResets to noneTry it
inheritTakes the parent's column-rule-styleTry it

hidden, ridge, inset, and outset are also valid. For study, start with solid, dashed, and dotted.

How to Use column-rule-style

Create columns, set width and color if you like, then pick a visible style.

  1. Enable columns with column-count or columns.
  2. Add column-gap so the rule has room.
  3. Set column-rule-style to a visible keyword such as solid.
  4. Optional: set column-rule-width and column-rule-color, or use the column-rule shorthand for all three.
PieceRequired?Role
column-rule-styleYes (to show a line)Without it, the rule stays none
column-rule-widthOptionalDefaults to medium
column-rule-colorOptionalDefaults to currentColor

Live Preview

Width and color stay fixed. Change only the rule style.

Scaffold uses a blue rule. double and groove bump width to 6px so the pattern is clearer.

Result

London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.

column-rule-style: solid

CSS Examples

Each snippet keeps only what column-rule-style needs. Use Try It Yourself for a live editor.

Example 1 — solid

Draw a continuous divider between three text columns.

CSS
<style>
  p {
    column-count: 3;
    column-gap: 1.5rem;
    column-rule-width: 4px;
    column-rule-color: blue;
    column-rule-style: solid;
  }
</style>

<p>
  London. Michaelmas term lately over…
</p>
Try It Yourself

How It Works

  1. Create columns. column-count: 3 builds a multicol box.
  2. Leave a gutter. column-gap gives the rule space to sit in.
  3. Style makes it visible. column-rule-style: solid turns on a continuous line.
  4. Width and color. They paint the line; without a visible style they do nothing alone.

Example 2 — dashed

Use a softer dashed divider. Only the style keyword changes.

CSS
<style>
  p {
    column-count: 3;
    column-gap: 1.5rem;
    column-rule-width: 4px;
    column-rule-color: blue;
    column-rule-style: dashed;
  }
</style>

<p>
  London. Michaelmas term lately over…
</p>
Try It Yourself

How It Works

  1. Same scaffold. Columns, gap, width, and color stay the same.
  2. Change one keyword. dashed replaces solid.
  3. Longhand benefit. You update the pattern without rewriting width or color.
  4. Try dotted next. Swap in dotted the same way for a lighter look.

Example 3 — double

Two parallel lines. Give the rule enough width so both show.

CSS
<style>
  p {
    column-count: 3;
    column-gap: 1.5rem;
    column-rule-width: 6px;
    column-rule-color: blue;
    column-rule-style: double;
  }
</style>

<p>
  London. Michaelmas term lately over…
</p>
Try It Yourself

How It Works

  1. Pick double. The browser draws two parallel strokes.
  2. Widen the rule. 6px leaves room for both lines; 1px often looks like one.
  3. Keep color. Both strokes use the same column-rule-color.
  4. Same idea for groove. 3D styles also read better with a thicker width.

Edge Cases & Pitfalls

If the divider is missing, check style first—not color.

none

Initial style is invisible

The default is none. Setting only width or color does not draw a line. Include a visible style keyword.

double

double needs enough width

Two lines need space. Use something like 6px; a 1px double often looks like a single stroke.

short

Shorthand can reset style

Writing column-rule after a longhand resets width, style, and color together. Put column-rule-style after the shorthand when you need a style override.

hidden

none vs hidden

Both hide the rule visually for column rules. Prefer none unless you specifically need hidden for border-like semantics.

list

Multiple styles are not Baseline yet

Comma-separated styles and repeat() come from newer gap-decoration specs. Stick to one style for reliable support.

Browser Support

column-rule-style is a browser layout property. Node.js, Deno, and Bun do not apply it.

✓ Baseline · Widely available since 2017

column-rule-style

Chrome 50+, Firefox 52+, Safari 9+, Edge 12+, IE 10+. Classic single-style keywords are widely supported.

97% modern browsers
Google Chrome 50+
Full support
Mozilla Firefox 52+
Full support
Apple Safari 9+
Full support
Microsoft Edge 12+
Full support
Opera 37+
Full support
Samsung Internet 5.0+
Full support
Internet Explorer 10+
Full support
column-rule-style Widely supported

Bottom line: Safe for production with a single style keyword. Treat multi-style lists and repeat() as progressive enhancement only.

Key Takeaways

  • Role: style longhand for the multi-column divider.
  • Default: none—include a visible style to see a line.
  • Same keywords: matches border-style values.
  • Shorthand: use column-rule when setting width, style, and color together.

One line: column-rule-style chooses how the column divider looks; start from none and pick a visible keyword such as solid.

Frequently Asked Questions

column-rule-style sets the line style of the divider between columns in a multi-column layout. It is the style longhand of the column-rule shorthand.
The initial value is none, which means no visible line appears between columns until you set a different style.
Yes. It accepts the same keywords as border-style: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, and outset.
Color and width alone do not draw a line. You must set column-rule-style to a visible value such as solid or dashed.
column-rule sets width, style, and color together. column-rule-style changes only the line pattern without resetting the other longhands.
Chrome 50+, Firefox 52+, Safari 9+, Edge 12+, and IE 10+. It is a browser layout property, not a Node.js feature.

Next: column-rule-width

Set only the thickness of the column divider.

column-rule-width tutorial →

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.

8 people found this page helpful