bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/CSS/Advanced Styling
CSS•Advanced Styling

CSS Multiple Columns

CSS Multi-column Layout

The CSS Multi-column Layout Module allows easy definition of multiple columns of text - just like in newspapers:

CSS Multi-column Properties

In this chapter you will learn about the following multi-column properties:

  • column-count
  • column-gap
  • column-rule-style
  • column-rule-width
  • column-rule-color
  • column-rule
  • column-span
  • column-width

CSS Create Multiple Columns

The CSS column-count property specifies the number of columns an element should be divided into.

Example

Formatted code
div {
  column-count: 3;
}

Live preview

CSS Column Gap

The CSS column-gap property specifies the space between the columns.

Example

Formatted code
div {
  column-gap: 40px;
}

Live preview

Column Subpages

Continue learning about CSS multiple columns

  • Column Rules - column-rule, column-span, column-width

CSS Multi-columns Properties

The following table lists all the multi-columns properties:

PropertyDescription
column-countSpecifies the number of columns an element should be divided into
column-fillSpecifies how to fill columns
column-gapSpecifies the gap between the columns
column-ruleA shorthand property for setting all the column-rule-* properties
column-rule-colorSpecifies the color of the rule between columns
column-rule-styleSpecifies the style of the rule between columns
column-rule-widthSpecifies the width of the rule between columns
column-spanSpecifies how many columns an element should span across
column-widthSpecifies a suggested, optimal width for the columns
columnsA shorthand property for setting column-width and column-count

Previous

CSS Pagination Styles

Next

CSS Column Rules