Check out example codes for "text-align attribute in css". It will help you in understanding the concepts better.

Code Example 1

text-align:inherit;

Code Example 2

p{
    text-align:center;/*values: center, left, right, etc...*/
}

Code Example 3

text-align: justify;

Code Example 4

body {
  text-align: center;
}

Learn ReactJs, React Native from akashmittal.com