W3cubDocs

/CSS

column-rule-style

The column-rule-style CSS property lets you set the style of the rule (line) drawn between columns in multi-column layouts.

/* <'border-style'> values */
column-rule-style: none;
column-rule-style: hidden;
column-rule-style: dotted;
column-rule-style: dashed;
column-rule-style: solid;
column-rule-style: double;
column-rule-style: groove;
column-rule-style: ridge;
column-rule-style: inset;
column-rule-style: outset;

/* Global values */
column-rule-style: inherit;
column-rule-style: initial;
column-rule-style: unset;
Initial value none
Applies to multicol elements
Inherited no
Media visual
Computed value as specified
Animation type discrete
Canonical order per grammar

Syntax

A single <'border-style'> value.

Values

<'border-style'>
Is a keyword defined by border-style describing the style of the rule. The styling must be interpreted as in the collapsing border model.

Formal syntax

<'border-style'>

Example

HTML

#header {
  column-count: 3;
  column-gap: 40px;
  column-rule-style: solid;
}

CSS

<div id="header">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
  Mauris sit amet maximus quam. Fusce tempor metus turpis, sit amet bibendum purus tincidunt sit amet. 
  Etiam pretium tempus nibh id pharetra. Nullam ut fermentum est. Integer ut convallis eros, sed laoreet dui. 
  Quisque semper eget tortor ac tempor. Vestibulum quis risus ac ex ultricies vehicula. 
  Duis placerat elementum lectus, id vulputate urna placerat vel. Ut tincidunt sit amet velit sed imperdiet. 
  Duis et urna et sem ultricies rhoncus fermentum vitae est.
</div>

Result

Specifications

Specification Status Comment
CSS Multi-column Layout Module
The definition of 'column-rule-style' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

Feature Chrome Edge Firefox Internet Explorer Opera Safari
Basic support

50

Yes -webkit-

Yes

Yes -webkit-

52

Yes -moz-

10

11.1

15 -webkit-

3 -webkit-
Feature Android webview Chrome for Android Edge mobile Firefox for Android Opera Android iOS Safari Samsung Internet
Basic support Yes

50

Yes -webkit-

Yes

Yes -webkit-

52

Yes -moz-

? ? ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/column-rule-style