min-content, max-content, fit-content - intrinsic sizing with CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI9 min

About this video

A CSS tutorial explaining the min-content, max-content and fit-content sizing values and how they differ from the default sizing behaviour. It is for developers and designers who already work with CSS layouts.

What you’ll learn

  • Explain how the default behaviour of block and inline sizing differs from intrinsic sizing
  • Apply max-content to size an element to its content's natural width
  • Use min-content and fit-content to control how elements shrink and grow