Sunday, November 19, 2006

bidi fun

‮ and ‭ entities can be use to give browsers instructions on what order to display characters:


<div>&#8238;Left-to-right</div>
<div>&#8237;Right-to-left</div>


‮Left-to-right

‭Right-to-left


"dir" attribute can be used to provide block or page level direction on direction of the page:


<div dir="ltr">Left-to-right</div>
<div dir="rtl">Right-to-left</div>


Left-to-right

Right-to-left


A good overview:

w3c tutorial: http://www.w3.org/International/tutorials/bidi-xhtml/

No comments: