
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
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>
- Related Articles
- Set the text shadow around a text with CSS
- Set the height of a line of text with CSS
- How to set the color of a text with CSS
- Set Text Alignment Working with CSS
- How to set text direction in HTML?
- Set the color of the text decoration in CSS
- Set the style of the text decoration in CSS
- Indent the text of a paragraph with CSS
- Align the text of a document with CSS
- Align the text of a paragraph with CSS
- Set whether the text of the element can be selected or not with CSS
- Set Text Alignment using CSS
- Set the shadow around the text in CSS
- How to set the cases for a text in CSS?
- Set the kind of decoration used on text in CSS

Advertisements