concept

Scaled shrink factor — CSS reference

Worked calculation for negative free space: a 300px flex container holds two items with bases 200px and 200px, shrink factors 1 and 3, and zero minimum widths. The scaled factors are 200 and 600; distribute the 100px deficit as 25px and 75px. Final widths are 175px and 125px. Minimum/maximum constraints can freeze items and require redistribution; see the existing scaled flex shrink factor reference for the general algorithm.

Formal Syntax & Structure

css syntaxcss
flex: 0 1 200px;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>scaled-shrink-factor</title><style>body{margin:8px;font:16px/1.5 sans-serif}*{box-sizing:border-box}#a{display:flex;width:300px}#b{flex:0 1 200px;min-width:0}#c{flex:0 3 200px;min-width:0}</style><body><div id="a"><div id="b">First</div><div id="c">Second</div></div></body></html>
CSS Reference