CSS/Less: Truncate Text with CSS (ellipsis)
A cross-browser example of truncating a single line of text using only CSS. Cross-Browser Support: IE 6+, Safari 4+, Firefox 7+, Opera 11+ and Chrome 10+: .truncate { text-overflow: ellipsis; display: inline-block; vertical-align: top; white-space: nowrap; overflow: hidden; width: 150px; … Continue reading
Posted in CSS3, Web Development
Leave a comment