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
Mannix
Mannixā€¢3y ago
check kevin's yt recently he did a video about it
/bin/son-arg
/bin/son-argOPā€¢3y ago
Oh, nice! I appreciate that @mannix_
Electronic
Electronicā€¢3y ago
Would be nice to get a link couldn't find it
Mannix
Mannixā€¢3y ago
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...
Electronic
Electronicā€¢3y ago
Arigato
Mannix
Mannixā€¢3y ago
literally the latest one šŸ¤£
Electronic
Electronicā€¢3y ago
I just did a search with "Kevin paragraph" Had no idea the title would be a sentence
Mannix
Mannixā€¢3y ago
you could just see all kevin's videos and look through thumbnails šŸ™‚
Want results from more Discord servers?
Add your server