html - css - Two fonts in one page for two languages -


i'll explain myself. want users able write (in inputs, etc.) in 2 languages, hebrew , english. website can in english entirely user still type in hebrew , vice versa. basically, have no way of knowing in language user type in input box, want matching font each 1 of languages (so input box looks pretty both in english , in hebrew).

so, how can have 2 fonts 2 languages in 1 element?

btw: answer not :lang(he). doesn't automatically detect language, html attribute lang. it's same writing [lang=he]

as far know, should happen automatically. assign both fonts this: font-family: 'arial', 'arial (hebrew)'; @ this example.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -