/ Published in: CSS
Truncate text using only CSS. IE 6+, Safari 4+, Firefox 7+, Opera 11+ and Chrome 10+:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.truncated_link { text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top; }
URL: http://amix.dk/blog/post/19661