Set the direction of a text with CSS

JavascriptWeb DevelopmentFront End Scripts

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>
raja
Published on 13-Apr-2018 14:36:43
Advertisements