Conditional ... if line is too long
Hi all,
Is there an HTML tag or CSS property where if a paragraph is longer than 2 lines, it adds '...', and if it's not longer than 2 lines, nothing happens?
8 Replies
check kevin's yt recently he did a video about it
Oh, nice! I appreciate that @mannix_
Would be nice to get a link couldn't find it
Kevin Powell
YouTube
How to set a maximum number of lines of text with CSS
Limiting the total visible lines of text within an element is something I get asked about pretty frequently, and while there are probably some complex JavaScript solutions, there is a simple, though slightly strange, way to do it with CSS only.
#css
--
Come hang out with other dev's in my Discord Community
š¬ https://discord.gg/nTYCvrK
Keep u...
Arigato
literally the latest one š¤£
I just did a search with "Kevin paragraph"
Had no idea the title would be a sentence
you could just see all kevin's videos and look through thumbnails š