I want to add Unicode icons to a website, and only unicode -No custom font files.
I know I can do something like:
[class^=icon-facebook]:before { content: "\00066"; } [class^=icon-twitter]:before { content: "\01F426"; } [class^=icon-phone]:before { content: "\01F4DE"; } [class^=icon-fax]:before { content: "\01F4E0"; } [class^=icon-email]:before { content: "\01F4E7"; } [class^=icon-link]:before { content: "\01F517"; } [class^=icon-pay]:before { content: "\01F4B8"; } [class^=icon-dollar]:before { content: "\01F4B5"; } [class^=icon-yen]:before { content: "\01F4B4"; } [class^=icon-save]:before { content: "\01F4B0"; } However, I am reading that some browsers won't render the "icon" (Unicode character) properly. Sometimes browsers would display an empty square instead of the Unicode character.
How can I code my CSS to prevent that from happening?
- No custom fonts
- No images