never met a part of the stack I didn't like. sr. engineer at clique studios in chicago, perpetual creative hobbyist, bird friend, local gay agenda promoter. she/her. tips: https://ko-fi.com/carlymho
Yeah, text-overflow: ellipsis is a great solution if you only need one line, but unfortunately it doesnβt work for vertical overflow. (If they ever implement that, iβll be delighted!)
The reason why I use a large max-height number here is that I often use the CSS solution in the case where thereβs an βexpandβ button that the user can click to see the full content, and Iβm usually asked to have it slide down with an animation. CSS transitions work on max-height and max-width if youβre transitioning between two numbers, but not from a number to the none value. If youβre not having to deal with animated transitions, though, max-height: none totally works!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yeah, text-overflow: ellipsis is a great solution if you only need one line, but unfortunately it doesnβt work for vertical overflow. (If they ever implement that, iβll be delighted!)
The reason why I use a large max-height number here is that I often use the CSS solution in the case where thereβs an βexpandβ button that the user can click to see the full content, and Iβm usually asked to have it slide down with an animation. CSS transitions work on max-height and max-width if youβre transitioning between two numbers, but not from a number to the none value. If youβre not having to deal with animated transitions, though, max-height: none totally works!