property

Box flex — CSS reference

Deprecated historical CSS. Assigned a growth weight to an old flexible-box child. Modern flex-grow distributes positive free space; basis and shrink also matter. This example grows only the first item. Do not use the unprefixed historical syntax for new sites.

Formal Syntax & Structure

css syntaxcss
box-flex: 1;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>box-flex</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{display:flex;width:200px;height:100px;align-items:flex-start}#b,#c{width:40px;height:20px;background:lightblue}#a{}#b{flex-grow:1}</style><body><div id="a"><div id="b">A</div><div id="c">B</div></div></body></html>
CSS Reference