The how and why: align-items & align-content in flex and grid

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI13 min

About this video

Explains the difference between align-items and align-content in CSS flexbox and grid layouts, with a simple example and a practical layout example. It suits front-end learners who already know basic flexbox.

What you’ll learn

  • Explain how align-items aligns items along the cross axis in flexbox
  • Use align-content to space multiple lines in flex and grid containers
  • Apply both properties together in a grid layout