Last active
January 4, 2016 12:58
-
-
Save mrfoxtalbot/707296e2ae5d199bbba0 to your computer and use it in GitHub Desktop.
Unicode hex values for CSS pseudo element
This file contains 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
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