property
min-height — CSS reference
Constrains physical vertical size with a lower bound. Initial auto; not inherited. Automatic minimum sizing depends on layout, especially flex and grid.
Formal Syntax & Structure
css syntaxcss
auto | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) (core values)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS box geometry lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a{height:40px;min-height:90px;width:120px} #b{height:80px;min-height:90px;max-height:60px;width:120px}</style><body><div id="a" class="sample"></div><div id="b" class="sample"></div></body></html>