Flexbox Yard

Learn CSS flexbox by writing the declarations that move the ducks onto their ponds, judged by a real flex layout.

Level 1 of 12

The right bank

Every duck sits in a line along the main axis, which for a row runs left to right. `justify-content` places that whole line: `flex-start` at the left edge, `flex-end` at the right, `center` in the middle, and the `space-` values spread the line out. Put all three ducks on the ponds at the right edge.

The yard123123Ponds are dashed; each one is labelled with the duck it wants.
.yard the yard.item-1 … .item-3 one duck each, numbered as they are writtenDeclarations at the top level belong to the yard too. The score counts each declaration as property: value, so short values win.

0 of 3 ducks on a pond.

  • Duck 1at 0, 0 · 60×60wants 140, 0 · 60×60
  • Duck 2at 60, 0 · 60×60wants 200, 0 · 60×60
  • Duck 3at 120, 0 · 60×60wants 260, 0 · 60×60

More in the yard