liveBook · Manning

Block axis

As explained in Web Design Playground, Second Edition

The block axis is the CSS layout axis perpendicular to the inline axis.

The block axis is the CSS layout axis perpendicular to the inline axis. In English and Arabic, the inline axis runs horizontally, so the block axis runs vertically. Because content flows down a grid column, it is also called the column axis. section 13.9

A grid’s vertical direction

Picture a grid with words running left to right across each row. The direction those rows stack—up and down through the columns—is the block axis. CSS Grid alignment can work along this axis or along the inline, row axis. section 13.9

container {
    display: grid;
    align-content: start|end|center|stretch|space-between|space-around|space-evenly;
}

Use align-content to position grid rows along the block, or column, axis within the grid container. section 13.9

How Web Design Playground, Second Edition covers it

How deep it goes
Defines the axis through writing direction and grid flow, then connects it to container alignment without exploring implementation internals.
Examples
Uses English and Arabic writing directions, grid rows and columns, and align-content as concrete illustrations.
What you can do after
Apply it via CSS Grid alignment properties to reason about vertical or column-axis positioning.
How it connects
Connects the block axis to the inline axis, writing mode, CSS Grid Layout, columns, and align-content.

Related concepts

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