using % for font size code example
Example 1: text size in CSS
font-size: 2em;
Example 2: css font size
// to scale font size in relation to its parent element
style="font-size: 2vw;"
font-size: 2em;
// to scale font size in relation to its parent element
style="font-size: 2vw;"