Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

limit paragraph by 2 lines 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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #limit #paragraph #lines #css
ADD COMMENT
Topic
Name
6+5 =