본문 바로가기
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

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP