Answers for "how to use css to truncate long text after 3 lines"

CSS
15

text-overflow ellipsis multiple lines

p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
Posted by: Guest on March-22-2020
0

css paragraph ellipsis

max-width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Posted by: Guest on March-23-2020

Code answers related to "how to use css to truncate long text after 3 lines"

Browse Popular Code Answers by Language