Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need a css code for Indian rupee symbol in HTML.

I know there is a CSS or JS code supplied by webrupee.com. But this works only if machine has internet connection and I am going to configure my site on INTRANET, So it may not have internet connection all the time.

Second alternative I found is to use code "& #x20B9;" But it only works if machine supports Unicode 6.0 (Not sure how to add unicode support).

Let me know if there is some css/js code or I can make second option work.

Thanks in Advance.
Posted
Updated 2-May-13 1:30am
v3

Try using Javascript:

 <head>
<script src="http://cdn.webrupee.com/js" type="text/javascript"></script>
</head>


<span class="WebRupee">Rs.</span>


It should work.
 
Share this answer
 
Comments
sam7one 3-May-13 7:12am    
As I mentioned earlier, Script provided by you only works if computer has active internet connection. I added above code and it worked when there was internet connection, then I disabled my connection and it was not showing rupee symbol.
Thanks7872 3-May-13 7:15am    
Go through javascript.Put code in your page itself.It should work.
Hi Friend,

I don't have a stiff solution but I have an idea. We can get a png image of the Indian Rupee from This link.

Then use a simple CSS like this :
CSS
.rupee {
	background: transparent url("./images/rupee.png") no-repeat;
	background-size: 10px 14px;
	background-position: 0 0;
	display: block;
	min-width: 10px;
	height: 14px;
	line-height: 14px;
        padding-left: 12px;
	float: left;
	clear: both;
}


Usage in HTML :
HTML
<div>
  <p class="rupee">100</p>
</div>


At the moment, It works perfectly... You actually have to download and store the png image of rupee that I provided in the link above.

I hope that this answer solved your problem. Please do rate it and accept is as solved if it solved your problem :)

With Regards
Tushar Srivastava
 
Share this answer
 
Comments
♥…ЯҠ…♥ 22-Dec-13 23:02pm    
Good, deserves 5+
Er. Tushar Srivastava 23-Dec-13 3:44am    
Thank you :) I am more than happy to help. Please mark it as solved if it helped you ;) :P
♥…ЯҠ…♥ 23-Dec-13 4:41am    
Am not OP, so I cant accept it as answer.
Er. Tushar Srivastava 23-Dec-13 4:42am    
alright :) even though I am happy to help :)
♥…ЯҠ…♥ 23-Dec-13 5:29am    
Am happy to encourage people like you ;-)
Hi sam7one,

Please go through the following link
http://webrupee.com/[^]

If you don't want a live reference for the application, then add the below code into a JS file, and get the link reference into the required page.

http://cdn.webrupee.com/js

Check if you might need the font also, then get the font from below link

http://cdn.webrupee.com/font[^]

Thank you,
Vamsi
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900