Direction property is used to set the direction of the text weather its left of the page or its from the right side of the page.
Direction property has the two values only either left or right.
Syntax:
p{ direction:rtl; }
CSS:
p{ direction:rtl; font-size:12px }
HTML:
<p>This paragraph will align in the right direction. We can use the direction property to do this.</p>
Browser Support: All Latest Version:
Feature | Chrome | Firefox | IE | Opera | Safari |
---|---|---|---|---|---|
Basic support | Yes | Yes | Yes | Yes | Yes |