How to use utf-8 character e.g. "âš™" (a ⛮ icon) as background image before?
I tried: .icon:before{content:'âš™'}
is not working
Asked
Active
Viewed 261 times
0

Temani Afif
- 245,468
- 26
- 309
- 415

MrQd
- 33
- 1
- 7
-
possible duplicate of: https://stackoverflow.com/q/39422891/8620333 / https://stackoverflow.com/q/5030551/8620333 – Temani Afif Oct 26 '19 at 23:48
-
No its not that question – MrQd Oct 26 '19 at 23:54
-
If you want unicode characters as css background, then it is possible by using svg as background-image. You can use the text element in inline data uri svg and style it however you want. – Vishal Biswas Oct 27 '19 at 04:24