concept
indefinite-size — CSS reference
An indefinite size lacks a definite value for the relevant sizing step. A content-dependent block height in ordinary flow generally cannot resolve a child percentage height, which behaves as auto. Do not assume that a final measured pixel height was definite during sizing.
Formal Syntax & Structure
css syntaxcss
height: autoWorking 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>