Syntax | selector {text-align: value;}
|
---|---|
Usage | The text-align property is used to specify the horizontal alignment of inline-level content such as text and images. This property is specified by using a keyword according to the syntax shown above. |
Keywords |
|
Applies To | Block containers |
Inherited | Yes |
Initial Value | Depends on the value of the direction property. If the direction property is set to ltr, then the text will be aligned to the left side. If the direction property is set to rtl, then the text will be aligned to the right side. |
The text-align properties are set to right, justify, and center. |