Back in the old days, there was a method in Webkit to limit lines using only CSS:
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
While this technique can still be used alongside display: -webkit-flex
, it is considered outdated in modern Webkit-based browsers.
My inquiry is:
Is there a way to clamp lines in CSS without relying on the deprecated '-webkit-line-clamp'
trick?