The column-rule
shorthand CSS property sets the width, style, and color of the line drawn between columns in a multi-column layout.
The column-rule
shorthand CSS property sets the width, style, and color of the line drawn between columns in a multi-column layout.
It is a shorthand property that sets the individual column-rule-*
properties in a single, convenient declaration: column-rule-width
, column-rule-style
, and column-rule-color
.
Note: As with all shorthand properties, any individual value that is not specified is set to its corresponding initial value (possibly overriding values previously set using non-shorthand properties).
The column-rule
property is specified as one, two, or three of the values listed below, in any order.
<'column-rule-width'>
Is a <length>
or one of the three keywords, thin
, medium
, or thick
. See border-width
for details.
<'column-rule-style'>
See border-style
for possible values and details.
<'column-rule-color'>
Is a <color>
value.
Initial value | as each of the properties of the shorthand:
|
---|---|
Applies to | multicol elements |
Inherited | no |
Computed value | as each of the properties of the shorthand:
|
Animation type | as each of the properties of the shorthand:
|
Specification |
---|
CSS Multi-column Layout Module Level 1 # column-rule |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
column-rule |
501 | 1212 | 523.5–74Before Firefox 3, the default value for thenormal keyword was 0 and not 1em . |
10 | 1511.1 | 93 | 50≤37 | 5018 | 524 | 1411.1 | 91 | 5.01.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/column-rule