back

Text-Align

This is used to align the content of an element.
The options are:
(1) Left, the content will be aligned left.
(2) Right, the content will be aligned right.
(3) Center, the content is centered.
(4) Justify, the content is stretched to fill the space, touching both the left and right margins.
(5) Start, this depends on the direction property, it will left align in ltr and right align in rtl.
(6) End, this depends on the direction property, it will right align in ltr and left align in rtl.
(7) Inherit, the value will be inherited from the parent element.

Example