4 ways to deal with overflowing text

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUIWeb Design5 min

About this video

A CSS tutorial comparing four ways to handle overflowing text: overflow-x, break-word, min-content and fit-content, and container queries. It suits web designers and developers who already write CSS and want to choose the right fix for each situation.

What you’ll learn

  • Choose between overflow-x, break-word, min-content and container queries for overflowing text
  • Apply fit-content and min-content to size containers around their content
  • Use container queries to adjust text layout to the size of its container