I have a chatbox that displays chats like this
Username: my chat message
Username2: chat message
But then someone registered using Hebrew characters on his username now when he posts on our chatbox it is displayed incorrectly. It would display like this
תירבע: 12345
Username: my chat message
Username2: chat message
This only happens if he posts numbers. Sample HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Chatbox</title></head>
<body>
<div><span><a target="_BLANK" style="" href="#">תירבע</a>:</span><span>12345</span></div>
<div><span><a target="_BLANK" style="" href="#">תירבע</a>:</span><span>this is not numbers so it is displayed correctly</span></div>
<div><span><a target="_BLANK" style="" href="#">Username1</a>:</span><span>message1</span></div>
<div><span><a target="_BLANK" style="" href="#">Useraname2</a>:</span><span>message2</span></div>
</body>
</html>
And the output of that is this
תירבע:12345
תירבע:this is not numbers so it is displayed correctly
Username1:message1
Useraname2:message2
How can I make it display correctly so that the username should appear first?
<span><a target="_BLANK" style="" href="#">תירבע</a>:<span class="">12345</span>
<br/> All I want is to negate the effect of the hindi so that it would not display right to left. – Imminentdirection: ltr;
to your styles. – Stalinismdirection: ltr;
has no effect @Tyler I already added html codes on my question – Imminentdir="ltr"
solved the problem. But is it possible to specify this in the css? I already trieddirection: ltr;
and its now working. – Imminent