Text Align

The text-align property specifies the horizontal alignment of text in an element. The text-align property has the value of ‘left’ as the default value for all the elements on a web page and can take following values

 

Value

Description

left

Aligns the text to the left

right

Aligns the text to the right

center

Centers the text

justify

Stretches the lines so that each line has equal width

 

Its usage is as
  h2
  { text-align: center; }
  h3
  { text-align: justify; }
Share this post
[social_warfare]
Text-Indent
White Space Property

Get industry recognized certification – Contact us

keyboard_arrow_up