Basj Basj - 20 days ago 6
HTML Question

Special characters seem to swap HTML letter order

Why is the red part AFTER the

:...
in the following text and not before?

This was rendered with Windows 7, Firefox 47:

enter image description here



<p><b style="color: red;">לה</b>: להz</p>




Answer

Its longer and there is possibly a better way, but this seems to work:

<p style="display: inline-block;"><b style="color: red;">לה</b></p><p style="display: inline-block;">: להz</p>