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

Code Example 1

<div class="position-static">...</div>
<div class="position-relative">...</div>
<div class="position-absolute">...</div>
<div class="position-fixed">...</div>
<div class="position-sticky">...</div>

Learn ReactJs, React Native from akashmittal.com