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

Code Example 1

body {
  text-align: right;
}

Code Example 2

<switch>
    h1 {
    text-align: center;
}

p.date {
    text-align: right;
}

 
p.main {
    text-align: justify;
} 
</Switch>

Code Example 3

body {
  text-align: left;
}

Code Example 4

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

Code Example 5

div.a {
  text-align: center;
}


    div.b {
  text-align: left;
}


    div.c {
  text-align: right;
}

div.c {
  text-align: 
    justify;
}

Code Example 6

.class {
	text-align: center;
}

Learn ReactJs, React Native from akashmittal.com