title | date | submitter | number | tags | discussion | |
---|---|---|---|---|---|---|
I want multi-line text-overflow property values in CSS |
2019-10-01 22:38:20 UTC |
Anonymous |
76 |
|
We can control text overflow on one single line with white-space: nowrap
and text-overflow: ellipsis
, but there’s nothing for multi-line control. Apple introduced two proprietary properties (-webkit-line-clamp
and -webkit-box-orient
) for this and there are certainly ways to accomplish this goal with JavaScript, but a declarative, standardized way to control this in CSS would be most welcome.