Skip to content

Instantly share code, notes, and snippets.

@sntran
Forked from danott/entities.css
Last active December 17, 2015 19:48
Show Gist options
  • Select an option

  • Save sntran/5662538 to your computer and use it in GitHub Desktop.

Select an option

Save sntran/5662538 to your computer and use it in GitHub Desktop.
Separated to reusable CSS classes, with support for IE.
/* Daniel Ott
* entities.css
*
* Adding arrows to thinks makes them more clickable. Right?
* Use CSS's :after pseudo-selector to insert hexadecimal values
* of html entities into the document. Less markup. More awesome.
*/
.add-an-arrow:after {
content:'\00a0\25b8'; /*  ▸ in Hexadecimal */
}
/*-----------------------------------------------
A cheat sheet of entities I've used
-------------------------------------------------
Entity Hexcode Description
  \00a0 A space
◀ \25c0 Left arrow with no tail.
▸ \25b8 Right arrow with no tail.
▾ \25be Down arrow with no tail.
← \2190 Left arrow with a tail.
→ \2192 Right arrow with a tail.
-----------------------------------------------*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment