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