Check out example codes for "how to stick a text to a div in css". It will help you in understanding the concepts better.

Code Example 1

<!-- CSS Style -->

<style>
  .stick{
    width: 100px;
    height: 100px;
    position: absolute;
    background-color: blue;
    
  }
  .stick::after{
    content:'A Stuck Word';
    position: absolute;
    top: 110px;
  }
</style>
<!-- CSS Style -->


<div class="stick"></div>

Learn ReactJs, React Native from akashmittal.com