Last active
December 28, 2015 07:19
-
-
Save tvandervossen/7463148 to your computer and use it in GitHub Desktop.
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
div.description a.autolink | |
{ | |
display: inline-block; | |
max-width: 250px; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
} |
Great idea, but it doesn't seem to work for me…
@bwinton You need to add this:
white-space: nowrap; /* make sure the link stays on one line */
vertical-align: bottom; /* align the link with the text */
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could even use max-width: 50% to make it especially nice.