Skip to content

Instantly share code, notes, and snippets.

@tvandervossen tvandervossen/gist:7463148
Last active Dec 28, 2015

Embed
What would you like to do?
div.description a.autolink
{
display: inline-block;
max-width: 250px;
text-overflow: ellipsis;
overflow: hidden;
}
@tvandervossen

This comment has been minimized.

Copy link
Owner Author

commented Nov 14, 2013

You could even use max-width: 50% to make it especially nice.

@bwinton

This comment has been minimized.

Copy link

commented Nov 14, 2013

Great idea, but it doesn't seem to work for me…

@charlesdemers

This comment has been minimized.

Copy link

commented Nov 14, 2013

@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 can’t perform that action at this time.