Created
December 2, 2011 15:57
-
-
Save oppara/1423736 to your computer and use it in GitHub Desktop.
Truncating text using only CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://amix.dk/blog/post/19661 */ | |
.link_truncated { | |
display: inline-block; | |
width: 275px; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
vertical-align: top; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment