The problem with min-width: 0

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI25 min

About this video

Kevin Powell explains why flexbox items often refuse to shrink below their content size, what min-width: 0 changes, and the side effects it can introduce. The video is aimed at people who already write CSS for layouts.

What you’ll learn

  • Explain why flex items do not shrink below their content width
  • Apply min-width: 0 to let flex children shrink and truncate
  • Weigh the new overflow issues min-width: 0 can cause