Answers for "How to truncate a multiline text using css"

CSS
0

How to truncate a multiline text using css

.yourclassselector {

overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3; /* Change this to any number of line to truncate.*/
-webkit-box-orient: vertical;
}
Posted by: Guest on December-03-2020

Code answers related to "How to truncate a multiline text using css"

Browse Popular Code Answers by Language