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;
}
//Truncate text overflow
.element {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.truncate-5 {
display: -webkit-box;
-webkit-line-clamp: 5; /* if you only want two lines then set it to 2*/
-webkit-box-orient: vertical;
overflow: hidden;
}