Tuesday, March 31, 2015

Truncate text with CSS - CSS Snippet

Simple CSS code snippet to truncate strings quickly using Ellipsis
.truncate {
width: 250px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Disqus Comments