NonameSL NonameSL - 3 years ago 135
Sass (Sass) Question

css - Two fonts in one page for two languages

I'll explain myself.
I want my users to be able to write (in inputs, etc.) in two languages, Hebrew and English. The website itself can be in English entirely but the user could still type in Hebrew and vice versa. So basically, I have no way of knowing in what language the user will type in my input box, but I want a matching font for each one of my languages (so the input box looks pretty both in English and in Hebrew).

So, how can I have 2 fonts for 2 languages in 1 element?

BTW: The answer is not

. It doesn't automatically detect language, just the HTML attribute
. It's the same as writing

Answer Source

As far as I know, this should happen automatically. Just assign both fonts like this: font-family: 'Arial', 'Arial (Hebrew)'; You could look at this example.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download