CSS column-rule ιδιότητα

Definition and usage

The column-rule attribute is a shorthand attribute used to set all column-rule-* attributes.

The column-rule attribute sets the width, style, and color of the rules between columns.

See also:

CSS3 Tutorial:Πολυπολιδιακά του CSS3

HTML DOM Reference Manual:columnRule attribute

Example

Specify the width, style, and color rules between columns:

div
{
column-rule:3px outset #ff00ff;
}

Try it yourself

More examples at the bottom of the page.

CSS syntax

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

Attribute value

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

Technical details

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

More examples

Column-count
Divide the text within the div element into three columns.
Column-gap
Divide the text within the div element into three columns, with a 30-pixel gap between them.

Browser support

Numbers in the table indicate the first browser version that fully supports the property.

Numbers with -webkit- or -moz- prefixes indicate the first version using the prefix.

Chrome IE / Edge Firefox Safari Opera
50.0
4.0 -webkit-
10.0 52.0
2.0 -moz-
9.0
3.1 -webkit-
37.0
15.0 -webkit
11.1