concept
Grid flex fraction — CSS reference
For a definite target, subtract nonflexible base sizes and divide the remainder by the sum of flex factors, floored at one. If a track’s resulting share falls below its base, treat that track as fixed and recompute. Indefinite-space sizing instead considers bases and max-content contributions of crossing items.
Formal Syntax & Structure
css syntaxcss
grid-template-columns: minmax(180px, 1fr) 2fr;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>grid-flex-fraction</title><style>body{margin:0}#g{display:grid;width:300px;grid-template-columns:100px 1fr;grid-auto-rows:40px;justify-content:start;align-content:start;background:#e8edf1}#g>*{background:#126f70;color:white}#b{background:#325d8c}#g{grid-template-columns:minmax(180px,1fr) 2fr}</style><body><div id="g"><div id="a">A</div><div id="b">B</div></div></body></html>