🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to CSS Notes
Topic #161

Multiple Column Rules


This page covers CSS column rules, span, and width properties.


CSS Column Rule

The CSS column-rule-style property specifies the style of the vertical rule between columns:

Example

div
{

  column-rule-style: solid;

}

The CSS column-rule-width property specifies the width of the vertical rule between columns:

Example

div
{

  column-rule-width: 1px;

}

The CSS column-rule-color property specifies the color of the vertical rule between columns:

Example

div
{

  column-rule-color: lightblue;

}

The CSS column-rule property is a shorthand property for setting all the column-rule-* properties above.

Example

div
{

  column-rule: 1px solid lightblue;

}

CSS Column Span

The CSS column-span property specifies how many columns an element (typically a heading) should span across.

Example

h2 {

  column-span: all;
  text-align: center;

}

CSS Column Width

The CSS column-width property specifies a suggested, optimal width for each column.

Here, the browser will determine the number of columns based on this width and the available space.

Example

div {

  column-width: 100px;

}

CSS Multi-columns Properties

The following table lists all the multi-columns properties:

Property Description
column-count Specifies the number of columns an element should be divided into
column-fill Specifies how to fill columns
column-gap Specifies the gap between the columns
column-rule A shorthand property for setting all the column-rule-* properties
column-rule-color Specifies the color of the rule between columns
column-rule-style Specifies the style of the rule between columns
column-rule-width Specifies the width of the rule between columns
column-span Specifies how many columns an element should span across
column-width Specifies a suggested, optimal width for the columns
columns A shorthand property for setting column-width and column-count

Want to go beyond the notes?

Join CodingNow 2.0's CSS course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Multiple Column Rules – FAQs

Quick answers about learning Multiple Column Rules in CSS.

This free note from CodingNow 2.0 explains Multiple Column Rules in CSS — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every CSS topic on CodingNow 2.0, including Multiple Column Rules, is 100% free with no signup required.
With focused practice, most students grasp Multiple Column Rules in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now