Menu Close

Text Align Property in CSS

Codeamend

The text-align property in CSS is used to make the horizontal alignment of text in an element

Property Value: The text-align property value are listed below:

S.No

Property Value

Syntex

Description

1

left

text-align:left;

Used to align the text-alignment into left.

2

center

text-align:center;

Used to align the text-alignment into center.

3

right

text-align:right;

Used to align the text-alignment into right.

4

justify

text-align:justify;

Used to stretch the content of an element to display the same width of each line

5

initial

text-align:initial;

Used to set its default value.

6

inherit

text-align:inherit;

Used to be inherited from its parent.

Posted in CSS

You can also read...