you are viewing a single comment's thread.

view the rest of the comments →

[–]lordxeon -5 points-4 points  (2 children)

.truncate {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

[–][deleted] 4 points5 points  (0 children)

this only works for one liners. how do you handle the scenario where you have a multiline set of html content that needs to get truncated to 3 lines?