bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/CSS/Advanced Styling
CSS•Advanced Styling

CSS Multiple Columns

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind CSS Multiple Columns?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___-count: 3;
3Order

Put the learning moves in the order that makes the concept easiest to apply.

CSS Create Multiple Columns
CSS Multi-column Properties
CSS Multi-column Layout

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