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
💬
Keep up to date with everything I’m up to
✉
Come hang out with me live every Monday on Twitch!
📺
---
Help support my channel
👨🎓 Get a course:
👕 Buy a shirt:
💖 Support me on Patreon:
---
My editor: VS Code -
---
I’m on some other places on the internet too!
If you’d
1 view
103
29
1 month ago 00:05:17 1
The Ultimate Email Extractor in 2024: YellowPages Scraper 🌎
1 month ago 00:03:55 1
Pokemon GO Joystick, Teleport, Auto Walk - How to Get Pokemon GO Spoofer iOS & Android 2024 FREE
1 month ago 00:12:05 1
ZenBusiness Review 2024: What Makes It Stand Out?
1 month ago 00:04:14 1
Paramore: Decode [OFFICIAL VIDEO]
1 month ago 02:01:18 1
Half-Life 2: 20th Anniversary Documentary
1 month ago 00:36:24 2
Best of the Worst Trivia!
1 month ago 00:03:07 1
Delta Executor iOS iPhone Android NO KEY - Roblox Script Executor Mobile NEW UPDATE 2024
1 month ago 00:03:04 1
Bach, Organ Sonata No. 4 in E minor (BWV 528) 3. Un poco Allegro.
1 month ago 00:04:49 1
Play To Earn🔥This New Play to Earn Game is About to Make a Lot of People RICH
1 month ago 00:03:04 1
Arena Of Valor Hack - How to Get Unlimited Vouchers! iOS Android