concept
definite-size — CSS reference
A definite size can be resolved without performing layout of the relevant content, or is treated as definite by the applicable layout algorithm. A definite containing block height allows ordinary percentage child heights to resolve. Flex and grid have additional definiteness rules.
Formal Syntax & Structure
css syntaxcss
height: 120pxWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS sizing and overflow lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#p{height:120px} #a,#b{height:50%;min-height:20px}</style><body><div id="p"><div id="a" class="sample"></div></div><div id="q"><div id="b" class="sample"></div></div></body></html>