liveBook · Manning

Column

As explained in Web Design Playground

A vertical division of a layout used to organize content side by side across a page or table-like structure.

A column stacks content vertically, usually from top to bottom. In flexbox, it turns the container’s main axis vertical, while the cross axis runs horizontally. section 12.2

Think of flex-direction as choosing which way the row of boxes travels:

  • row moves items horizontally from left to right. section 12.2
  • column moves items vertically from top to bottom. section 12.2
  • column-reverse keeps the vertical arrangement but runs it from bottom to top. section 12.2

A centered portfolio stack

Make the body a row-direction flex container and center its contents. Then make the nested container a column-direction flex container so its content starts at the top and stacks vertically. section 20.10

container {
    display: flex;
    flex-direction: row|row-reverse|column|column-reverse;
}

Try each flex-direction value and watch the same items switch between horizontal, vertical, and reversed arrangements. section 12.2

How Web Design Playground covers it

How deep it goes
Defines column through flexbox axes and direction values, then demonstrates nested containers and reversed ordering.
Examples
Uses pricing tables, nested portfolio containers, and div elements whose order changes with flex-direction.
What you can do after
Apply it via CSS by setting flex-direction: column or column-reverse on a flex container.
How it connects
Connects columns with flexbox containers, main and cross axes, flex-direction, and content alignment.

Also explained in

Compare how 9 books explain column →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground. The section links point to the parts of the book it draws on.