Potong teks CSS
.element{
text-overflow: ellipsis;
/* Required for text-overflow to do anything */
white-space: nowrap;
overflow: hidden;
}
ck
.element{
text-overflow: ellipsis;
/* Required for text-overflow to do anything */
white-space: nowrap;
overflow: hidden;
}
.text-ellipsis{
display: block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
//Truncate text overflow
.element {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
//Line Clampin’ (Truncating Multiple Line Text)
.paragraph {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
overflow: hidden;
}