DEV Community

Discussion on: Line Clampin'(Truncating Multiline Text) - the smarter way

Collapse
emilcheva profile image
Evgenia Milcheva Author • Edited

Good try (I like the effort you spent to make it CSS only) but has some cons to me.

  1. You won't be able to add ellipsis this way (this kind of changes the look I'm after)
  2. Increasing the line-height practically changes the number of lines to be shown (not in my case though as line-height is part of the mixin calc)

P.S. Accepting your remark and will add a codepen demonstrating my approach. Thank you!