Check out example codes for "how to vertical align text in css with your baseline". It will help you in understanding the concepts better.

Code Example 1

.container{
  display: table;
}

.div-inside-container{
  display: table-cell;
  vertical-align: middle;
}

Code Example 2

.top-align {
	vertical-align: top;
}  

.center-align {
  	vertical-align: middle;
}

Code Example 3

img.a {
  vertical-align: baseline;
}

img.b {
  vertical-align: text-top;
}

img.c {

      
    vertical-align: text-bottom;
}

img.d {
  
    vertical-align: sub;
}

img.e {
  vertical-align: super;
}

Learn ReactJs, React Native from akashmittal.com