Place-content vs. place-items | What's the difference to vertically & horizontally center?

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI9 min

About this video

Explains the difference between the CSS place-content and place-items shorthands, what each can and cannot do for alignment, and how combining them centres content vertically and horizontally. Aimed at people who already work with grid and flexbox.

What you’ll learn

  • Tell apart place-content and place-items in CSS grid and flexbox
  • Centre content vertically and horizontally with combined alignment properties
  • Recognise the limits of place-content for item alignment