How to Handle Text Overflow (With a CSS Ellipsis)

Envato on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI5 min

About this video

This short tutorial shows how to truncate overflowing text inside a container with a CSS ellipsis, so long strings do not break the layout. It is aimed at people building web interfaces.

What you’ll learn

  • Truncate overflowing text inside a container with CSS
  • Apply the overflow and ellipsis properties to keep a single line tidy