Answers for "show 3 lines of text css"

0

2 lines p css

.text {
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
   -webkit-box-orient: vertical;
}
Posted by: Guest on March-24-2022
0

paragraph dots after 2 lines css

display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
Posted by: Guest on August-25-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language