concept

flex-content-size-suggestion — CSS reference

The main-axis min-content size provides one input to the content-based minimum, with aspect-ratio cross-axis constraints applied when relevant. A non-replaced item takes the larger of content and transferred suggestions if both exist; a replaced item takes the smaller. A definite specified suggestion caps the result and a definite maximum main size also limits it.

Formal Syntax & Structure

css syntaxcss
min-width: auto;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS flexible sizing lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#p{display:flex;width:300px;align-items:flex-start;background:#e6eef2} #p>*{box-sizing:content-box;min-width:0;height:30px;background:#128579;color:white} #b{background:#326c9d}#p{width:180px}#a{flex:1 1 0;min-width:auto}#b{flex:0 0 60px}</style><body><div id="p"><div id="a"><div style="width:200px">Wide content</div></div><div id="b">B</div></div></body></html>
CSS Reference