Line Clamp

PHOTO EMBED

Mon Jan 16 2023 09:32:34 GMT+0000 (Coordinated Universal Time)

Saved by @Sebhart #typography #css #fluid

p {
    display: -webkit-box;
    max-width: 200px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
content_copyCOPY

truncate multiple lines

https://stackoverflow.com/questions/33058004/applying-an-ellipsis-to-multiline-text