Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] ::after pseudo element / content Reply To: [Solved] ::after pseudo element / content

#171354
Henri Helvetica
Participant

… AND I may have answered my own q?

as per a blog post I just came across:

http://alanhogan.com/tips/css/special-characters-in-generated-content

Turns out you have to put in an escaped reference to the hexadecimal Unicode character value.

#metaInfo::before {
content: “\21D3”; /Hexadecimal for Unicode down arrow (⇓)/
display: inline;
}

** update **

further testing made the above solution produce me odd results (damn you internet). I ended up using \ 00 + hex value of character ( that you can find on any ascii table). So I ended up using \ 00A9 and it worked like a charm .

Sorry for the troubles and waste of cloud space!! ;)