concept

flex-base-size — CSS reference

The initial main size is derived from basis and relevant sizing rules before min/max main constraints are applied. It is not necessarily the final used size. For an explicit definite basis and content-box sizing, the example starts at 100px.

Formal Syntax & Structure

css syntaxcss
flex-basis: 100px;

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}#a{flex:1 1 100px;max-width:110px}#b{flex:1 1 100px}</style><body><div id="p"><div id="a">A</div><div id="b">B</div></div></body></html>
CSS Reference