HTML XHTML The Complete Reference
home » reference » appendix b » css1 / css2 properties

direction


The direction property is used to control the text direction much like the attribute dir for various HTML/XHTML tags. The allowed values are rtl (right to left) and ltr (left to right). While the direction property can easily affect block elements, for it to affect inline-level elements, the unicode-bidi property value must be embed or override.

Example


<div>
<span style="unicode-bidi: embed; direction: rtl; background-color: yellow;">
here doing I am What!
</span> This is just a test</div>

Browser and CSS Support Notes


CSS2
IE 5, 5.5, 6
Nav 6, 7
No Opera support

(X)HTML Elements
CSS Properties
Back: cursor Next: display
< Home | About | Chapters | Examples | Errata | Reference | Site Map >