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

Code Example 1

.right {
  position: fixed; /* the fixed pos makes it work */
  right: /*how much you want to move it right 
    put % or px or rem at end of the amount */;
}

Code Example 2

<html>
   <head>
   </head>

   <body>
      <div style = "position:relative; left:80px; top:2px; background-color:yellow;">
         This div has relative positioning.
      </div>
   </body>
</html>

Code Example 3

<div style="position:absolute; right:10;">Hello world</div>

Learn ReactJs, React Native from akashmittal.com