concept
computed-value — CSS reference
A computed value resolves the specified value as required by the property definition, generally without layout. It is the value passed to descendants by inheritance. Some percentages or keywords remain unresolved at this stage. For font-size, em refers to the parent’s computed font size.
Formal Syntax & Structure
css syntaxcss
font-size: 1.5em;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#parent {font-size:20px} #a {font-size:1.5em} #b {font-size:inherit}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>