Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

CSS3 column-rule property


May 05, 2021 CSS Reference Manual


Table of contents


CSS3 column-rule property


Rules between specified columns: width, style, and color:

Div
{
column-rule:3px outset #ff00ff;
-moz-column-rule:3px outset #ff00ff; /* Firefox */
-webkit-column-rule:3px outset #ff00ff; /* Safari and Chrome */
}

Try it out . . .
There are more examples at the bottom of this page.

Browser support

The numbers in the table support the first browser version number of the property.

The number immediately before -webkit-, -ms- or -moz- is the first browser version number that supports the prefix property.

Attributes
column-rule 50.0
4.0 -webkit-
10.0 2.0 -moz- 9.0
3.1 -webkit-
37.0
15.0 -webkit
11.1

Description of property definition and use

column-rule attribute

The column-rule property is a shorthand property that sets all column-rule-?properties. The column-rule property sets the width, style, and color between columns.

Default: medium none black
Inherited: no
Version: CSS3
JavaScript syntax: object .style.columnRule="3px outset #ff00ff"


Grammar

column-rule: column-rule-width column-rule-style column-rule-color ;

Value Description
column-rule-width Sets the width rules between columns
column-rule-style Set the style rules between columns
column-rule-color Sets the color rules between columns


CSS3 column-rule property

More instances

Column-count
The text of the div element is divided into three columns.

Column-gap
The text in the div element is divided into three columns and specifies the gap between a 30-pixel column.


Related articles

CSS3 tutorial: CSS3 Multiple Columns