Skip to content

Instantly share code, notes, and snippets.

@furzeface
Last active December 29, 2015 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furzeface/7696869 to your computer and use it in GitHub Desktop.
Save furzeface/7696869 to your computer and use it in GitHub Desktop.
Yeah so I'm ALWAYS forgetting how to do this, and end up trawling through code to find where I've done it before and copy pasting. So I'm basically writing this for myself to have a centralised copy paste place.
/*HTML (the easy part)*/
<ul>
<li>Daniel Furze</li>
<li class="ellipsis">Mc Testerson Longname IV</li>
</ul>
/*CSS (still a pretty easy part)*/
.ellipsis{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment