Check out example codes for "text size in CSS". It will help you in understanding the concepts better.

Code Example 1

.class {
	font-size: 12px;
}

Code Example 2

p {
	font-size: 150% /*px, cm, in, etc.*/; 
}

Code Example 3

#selector{
    font-size:20px;
}

Code Example 4

// to scale font size in relation to its parent element
style="font-size: 2vw;"

Code Example 5

font-size: 2em;

Code Example 6

.class {
	text-align: center;
}

Learn ReactJs, React Native from akashmittal.com