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

Code Example 1

<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->

<!-- Solution 1 -->
<p>
  This is some cool text in html, wow such cool text
</p>

<!-- Solution 2 -->
<font style="text-align:right;"> This text is on the right</font>
<font style="text-align:center;"> This text is in the center</font>
<font style="text-align:left;"> This text is on the left</font>

Code Example 2

<!-- inline-css inside html -->
<p style="text-align: inherit">
  text-align can have many values, such as: left, center, right, justify...
</p>

Code Example 3

text-align:inherit;

Code Example 4

<style>
  .Whatever {
  	right:0px;
  }
</style>

Code Example 5

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

Code Example 6

body {
  text-align: center;
}

Learn ReactJs, React Native from akashmittal.com