Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript limit number of lines in div

.max-lines {
  display: block;/* or inline-block */
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow: hidden;
  max-height: 3.6em;
  line-height: 1.8em;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #limit #number #lines #div
ADD COMMENT
Topic
Name
1+2 =