Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

truncate in css

.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;  
}
 
PREVIOUS NEXT
Tagged: #truncate #css
ADD COMMENT
Topic
Name
6+4 =