Check out example codes for "css height property". It will help you in understanding the concepts better.

Code Example 1

/* <length> values */
height: 300px;
height: 25em;

/* <percentage> value */
height: 75%;

/* Keyword values */
height: max-content;
height: min-content;
height: fit-content(20em);
height: auto;

/* Global values */
height: inherit;
height: initial;
height: unset;

Learn ReactJs, React Native from akashmittal.com