Check out example codes for "html how to bring an element to the top of the page". It will help you in understanding the concepts better.

Code Example 1

div {
  position: absolute;
  top: 50px;
}

Learn ReactJs, React Native from akashmittal.com