CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS text-align property




The CSS text-align property is use to set align (for example. left, right, center etc.) of an elements.


Property Values


Properties Value Description
Syntax text-align:value;
value   left
  right
  center
  justify
  inherit
Allow to All elements
Inherited Yes

Example-Code:

<p style="text-align:right;">CSS TEXT Align Right</p>
<p style="text-align:center;">CSS TEXT Align Center</p>
<p style="text-align:left;">CSS TEXT Align Left</p>
Online Try This Code Your Self....   »

Example-Result:

CSS TEXT Align Right

CSS TEXT Align Center

CSS TEXT Align Left