Currency Codes in Twitter Bootstrap Icons or ASCII Codes

泄露秘密 提交于 2019-12-05 19:40:39

I don't know a free currency sign Webfont but you can use ₹ ₹ or ₨ ₨ in HTML to display the indian ruppee sign, which should work on most modern operating systems.

You can find other currency symbols f.ex. in this PDF and decode them in HTML.

Edit: The new version 3.2.0 of Font Awesome supports now the rupee symbol.

For this i have just used some tools and assets to make a good and simple solution for this...

Icons i have taken from Free Icon Set for currencies and used Jasny Bootstrap for some add-on features and icons to Twitter Bootstrap...

For a Dollar sign, i have written this css:-

.icon-dollar {
    background-image: url("../images/cur_dollar_icon&16.png");
}

And for all custom currency icons. i have written:-

.icon-bp, .icon-dollar, .icon-euro, .icon-yen, .icon-rupee {
    background-position: center center;
    height: 16px;
    position: relative;
    top: -1px;
    width: 16px;
}

Html as:-

<i class="icon-dollar"></i>

So you can add easy and many icons as you can, thanks...

Rupees are supported by standard UTF8, and all of the default font families (Ariel, Currier, Times New Roman, San Serif, etc.) Just make sure your header is UTF compliant and use "\u20b9" which should escape to your symbol.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!