Give help. Get help.
I have a span tag that a line is bottom of it , I want to get width of each character .
then for example I want width of line be the same of 2 character of word.
I want type my word in Persia than in it the character width not equal to itself . thanks
border:1px solid #f30;
There isn’t one since, with most fonts, characters are not all the same width.
The only simple method is to use a monospace font, where all characters ARE the same width.
Then you can use the ch length.
You must be logged in to reply to this topic.