Mahdi Appleseed
Mahdi Appleseed

Reputation: 79

How to use persian or arabic numbers in HTML

i'm working on a web site and i want to use persian/arabic numbers. but when i write the number, the numbers shown in english format. also i tried for this code :

<html lang="fa" dir="rtl">

but it doesn't works for me. please show me a way. its my web site : http://follower.siblearn.ir i wanna change the 2.500 and 5.000 to the persian/arabic format.

Upvotes: 2

Views: 7537

Answers (1)

user6119929
user6119929

Reputation: 21

You should use Persian or Arabic font family like this:

body {  font-family: 'B Koodak',tahoma; }

before that, add some code like this to your html header:

<link href='http://www.fontonline.ir/css/BKoodakBold.css' rel='stylesheet' type='text/css'>

remember you can use your favorite fonts from online or hosted files.

{ font-family: 'B Koodak'; }

on every tag or class you want to apply for numbers

arabic numbers or persian numbers

Upvotes: 1

Related Questions