Zac RanckZac Ranck
  • Blog
  • Tidbits
  • About
  • Services
  • Contact
LinkedIntwittergithubemail
the test pyramid
October of 2022

Limiting Lines of Text With CSS

Often you'll be working on a site where the amount of text differs for elements of the same class. This leads elements to vary in height and generally doesn't look good. This tidbit will show you how to limit the number of lines shown while leaving an ellipsis, so the reader understands the text has been truncated.
All rights reserved © Zac Ranck 2022