Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

truncate multiline text

p {
    width:100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    background:#fff;
    position:absolute;
}
// I did with just the solution down:
p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #truncate #multiline #text
ADD COMMENT
Topic
Name
6+9 =