CSS PROPERTIES
Expand All|Collapse All
CSS AT-RULES
SPONSORED LINKS

CSS3 column-rule-width Property

Topic: CSS3 Properties Reference« Prev|Next »

Description

The column-rule-width CSS property sets the width of the rule drawn between the columns in a multi-column layout.

The following table summarizes the usages context and the version history of this property.

Default value: medium
Applies to: Multi-column elements
Inherited: No
Animatable: Yes. See animatable properties.
Version: New in CSS3

Syntax

The syntax of the property is given with:

column-rule-width: 
length | medium | thin | thick | initial | inherit

The example below shows the column-rule-width property in action.

  • p {
  •     /* Chrome, Safari, Opera */
  •     -webkit-column-count: 3;
  •     -webkit-column-gap: 100px;
  •     -webkit-column-rule-color: red;
  •     -webkit-column-rule-width: 2px;
  •     -webkit-column-rule-style: solid;
  •     /* Firefox */
  •     -moz-column-count: 3;
  •     -moz-column-gap: 100px;
  •     -moz-column-rule-color: red;
  •     -moz-column-rule-width: 2px;
  •     -moz-column-rule-style: solid;
  •     /* Standard syntax */
  •     column-count: 3;
  •     column-gap: 100px;
  •     column-rule-color: red;
  •     column-rule-width: 2px;
  •     column-rule-style: solid;
  • }

Property Values

The following table describes the values of this property.

Value Description
length A length in absolute or relative units that specifies the width of the rule.
medium Defines a medium rule. This is default value.
thin Defines a thin rule. Width is less than the default.
thick Defines a thick rule. Width is greater than the default.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element column-rule-width property.

Browser Compatibility

The column-rule-width property is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 2+ -moz-
  • Google Chrome 4+ -webkit-
  • Internet Explorer 10+
  • Apple Safari 3.1+ -webkit-
  • Opera 11.1+ -o-, 15+ -webkit-

Further Reading

See tutorial on: CSS3 Multi-column Layouts.

Related properties: column-width, column-fill, column-gap, column-rule, column-rule-color, column-rule-style, column-span, column-count, columns.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.