Tuesday, November 20, 2012

Fix problem in span tag with RTL Direction

Problem in span tag with RTL Direction
 span tag  is an inline element, and dir doesn't apply to inline elements (the same way height and position don't). The reason it works with  div tag  and so on is that those are block elements.

So to solve this problem you must convert span tag in block element here the solution :
 <span dir="rtl" style="display:block">your text here</span> 

Disqus Comments