html - How can I set a color to just some characters of one word? -


first of all, i'm talking persian language .. noted rtl language.

here current word:

سلامتی 

as see, persian characters adhered (stick) together. need set red color 4 first characters. this:

span{      color:red;  }
<span>سلام</span>تی

as see, when set red color character, word 2 different partitions .. while whole of single word , characters should stick each other (like سلامتی).

how can fix it?

in case have insert zero-width joiner &zwj; @ end of content want join other.

like this:

.red{color:red;}
<span class="red">سلام&zwj;</span>تى


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -