CSS gap is NOT a replacement for margins

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI10 min

About this video

Kevin Powell explains why CSS gap suits spacing out components while margins work better for regular flow content like text. The video is aimed at people who already write or design layouts in CSS.

What you’ll learn

  • Decide when to use gap for spacing components
  • Choose margins for spacing flow content like text
  • Recognise where removing margins in specific places is simpler