Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

bootstrap text truncate after 3 lines

<span class="text-truncate-2">
  I'm a cute rainbow otter let's be freinds.
</span>

.text-truncate-2 {
    -webkit-line-clamp: 2;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
Source by getbootstrap.com #
 
PREVIOUS NEXT
Tagged: #bootstrap #text #truncate #lines
ADD COMMENT
Topic
Name
6+4 =