Reputation: 8608
How can I use ellipsis in CSS to truncate after 3 lines of text, rather than 1?
I have this so far, but it only works for text on a single line. I want the text to wrap twice (for a quote).
.truncate {
width: 250px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Upvotes: 6
Views: 9454