Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

number of lines of text with CSS

display: -webkit-box; 
-webkit-line-clamp: 3; /* No worries, supported by all browsers */
-webkit-box-orient: vertical;
overflow: hidden; /* Hides text after ellispsis */
 
PREVIOUS NEXT
Tagged: #number #lines #text #CSS
ADD COMMENT
Topic
Name
1+2 =