Skip to content

Instantly share code, notes, and snippets.

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 mrfoxtalbot/707296e2ae5d199bbba0 to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/707296e2ae5d199bbba0 to your computer and use it in GitHub Desktop.
Unicode hex values for CSS pseudo element
You can't use html entities in a css pseudo element, because it inserts the ampersand and everything :
a:before { content: ''; }
In order to get it to work, you have to use the unicode hex values, which are stupid hard to figure out:
a:before { content: '\E139'; }
I had to use this unicode code converter to get the proper codepoints, but it would be super awesome if you provided them to begin with along with the html entities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment