Check out example codes for "vertical align h1 inside div". It will help you in understanding the concepts better.

Code Example 1

h1 {
  	line-height: 100px; /*size of parent div*/ 
}

Learn ReactJs, React Native from akashmittal.com