Learn CSS Flexbox in 10 Minutes (Course)

CSSnippets on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering10 min

About this video

A beginner CSS tutorial that introduces the main Flexbox properties for laying out web page elements, including centering, direction, wrapping, sizing and responsive media queries, in about ten minutes.

What you’ll learn

  • Center a div horizontally and vertically with display: flex
  • Control item direction, wrapping and spacing with flex-direction, flex-wrap and gap
  • Make flexible items grow and shrink, and combine flexbox with media queries