Answers for "css truncate text after 3 lines"

CSS
1

text truncate after 3 lines

.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
}
Posted by: Guest on August-14-2021
0

css text truncate 2 lines

p {
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
Posted by: Guest on January-19-2022

Code answers related to "css truncate text after 3 lines"

Browse Popular Code Answers by Language