# column-rule-width

> The `column-rule-width` CSS property sets the width of the rule between columns.

## How do I set the thickness of the line between CSS columns?

The property that sets the thickness (width) of the line (rule) between columns in a multi-column layout. It can be adjusted to make the line more prominent or subtle, depending on the design needs.

- Topic: Columns & Tables
- Type: property
- Browser support: Chrome 50+, Chrome Android 50+, Edge 12+, Firefox 52+, Firefox Android 52+, Safari 9+, Safari iOS 9+

## Example

Wrong:

```css
.text {
  columns: 2;
  column-gap: 4px;
  column-rule: 8px solid #ccc;
}
```

Right:

```css
.text {
  columns: 2;
  column-gap: 2rem;
  column-rule: 2px solid #ccc;
}
```

The rule is painted inside the gap, so the gap must be wider than the rule to keep it off the text.

## Common mistakes

- A wide rule overlaps column content, because it doesn't add space.

## Key points

- The rule width is not larger than `column-gap`, so it doesn't overlap text.
- A `column-rule-style` is set, or the rule is not drawn at any width.

## Interview questions

### What keywords does column-rule-width accept?

'thin', 'medium' and 'thick', or any length like '2px'. The default is 'medium'.

### Does column-rule-width change the width of columns?

No. The rule is painted inside the gap and doesn't affect layout.

## Related cards

- [column-rule](https://wonderium.dev/css/column-rule.md)
- [column-gap](https://wonderium.dev/css/column-gap.md)
- [border-width](https://wonderium.dev/css/border-width.md)
- [column-rule-style](https://wonderium.dev/css/column-rule-style.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/column-rule-width
- Last updated: 2026-11-25
