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 ‍
@ end of content want join other.
like this:
.red{color:red;}
<span class="red">سلام‍</span>تى
Comments
Post a Comment