Last active
December 29, 2015 16:19
-
-
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.
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
/*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