neolivz4ever neolivz4ever - 1 year ago 143
CSS Question

CSS content not working for some cases

I am trying to incorporate CSS before content.
I want to put info icon (i), which is "\e608"

#securityCodeLink:before {
content: "\e608";

The output looks like this


But if i try with 2701 or something like that

#securityCodeLink:before {
content: "\2701";

It works perfectly fine.


Can any one tell me why is this and how can i fix this?

Answer Source

The icon will only appear if you're using a font which supports it.

On StackOverflow (which uses a font-family of Arial, 'Liberation Sans', 'DejaVu Sans'):

\e608 renders as 

\2701 renders as ઍ

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download