|
|
|
|
|
by treyp
5480 days ago
|
|
"text-overflow: ellipsis" is a great start, but it's really too bad it only applies to individual lines of text (via "white-space: nowrap"). it would be very useful if we had a property to truncate text when it reaches the end of a container with a fixed height. so if the container is 3.5 lines tall, 3 lines should be shown with an ellipsis at the last character. bonus points if we can specify a separator, so that the ellipsis will only be applied after the last whole word (space), line (line break), or just character. |
|
I needed this desperately for a project I worked on last fall and ended up writing tons of JS which felt oh so wrong. Newspapers and magazines would LOVE to have that. Especially on mobile Safari. Especially on tablets.