Computer >> Computer tutorials >  >> Programming >> Javascript

Usage of direction property in CSS


The direction property is used to set the text direction. Possible values are ltr or rtl.

Example

You can try to run the following code to set the text direction with CSS:

<html>
   <head>
   </head>
   <body>
      <p style = "direction:rtl;">
         This text will be renedered from right to left
      </p>
   </body>
</html>