Some Glyphs will not work for some browsers, if the browser not add the font family. In that case you to add font family also in the css class.
Copy this code and paste in HTML then run.
Copy this code and paste in HTML then run.
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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<style> | |
/*To align in one line*/ | |
/*#horz-list li | |
{ | |
float: left; | |
}*/ | |
/*To remove bullets*/ | |
.myDv ul | |
{ | |
list-style-type: none; | |
} | |
#horz-list li:after | |
{ | |
content: "\03D2"; | |
/*http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/*/ | |
} | |
#horz-list li:last-child:after | |
{ | |
content: "\03D2"; | |
} | |
.mycustom:before | |
{ | |
content: "\E0D9"; | |
} | |
.mycustomwithfamily:before | |
{ | |
font-family: 'Segoe UI Symbol'; | |
content: "\E0D9"; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="myDv"> | |
<ul id="horz-list"> | |
<li>first item</li> | |
<li>second item</li> | |
<li>third item</li> | |
</ul> | |
</div> | |
<br /> | |
<br /> | |
<br /> | |
<span class="mycustom">My Custom with out font family</span> | |
<br /> | |
<span class="mycustomwithfamily">My Custom with font family</span> | |
</body> | |
</html> |