limit characters with line-clamp

So I just found out, that you can cut off text at any line you want with pure css using line-clamp.

TLDR

.clamp-container {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 1;
}


Posted

in

Tags: