Fixing when CSS Grid has extra spacing

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI4 min

About this video

A short CSS Grid tutorial that explains why grid rows can become unexpectedly tall and shows how to fix the extra spacing with alignment properties. It suits people who already build layouts in CSS.

What you’ll learn

  • Identify why CSS Grid rows stretch beyond their content
  • Apply alignment properties to remove extra row spacing