Menu Close

Text Align Property in CSS

0
(0)

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.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Share

Posted in CSS

Leave a Reply

Your email address will not be published. Required fields are marked *

You can also read...