unit
em — CSS reference
For most properties em refers to the element’s computed font size; for font-size itself it uses the inherited font size.
Formal Syntax & Structure
css syntaxcss
2emWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>html {font-size:16px} #a {font-size:20px;width:2em}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>