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

Code Example 1

body {
  text-align: center;
}

Code Example 2

text-align: center;

Code Example 3

body {
  text-align: left;
}

Code Example 4

div.a {
  text-align: center;
}


    div.b {
  text-align: left;
}


    div.c {
  text-align: right;
}

div.c {
  text-align: 
    justify;
}

Code Example 5

text-align: justify;

Code Example 6

text-align:inherit;

Learn ReactJs, React Native from akashmittal.com