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

Code Example 1

a {
  display: flex;
  justify-content: center;
  align-items: center;
}

Learn ReactJs, React Native from akashmittal.com