# Set the direction of a text with 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>
karthikeya Boyini

I love programming (: That's all I know

Advertisements