Saltar al contenido

Rows with Flexbox

English

Putting boxes in a row

  • By default, boxes stack downward. Often you want them side by side.
  • Flexbox is the easy way to do that.
  • Put display: flex; on the container — the box that holds the others — and its children line up in a row.

A flex row with gap and justify-content: space-between spreads boxes A, B and C along the main axis

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP