concept
Layout — CSS reference
Layout resolves box dimensions and positions under formatting constraints. Here two fixed-width flex items occupy 80px each with a 12px gap. Geometry APIs expose their positions, not the exact internal layout algorithm or its cost.
Formal Syntax & Structure
css syntaxcss
display: flex; gap: 12px;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>layout</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{display:flex;gap:12px}#a>*{flex:0 0 80px;height:24px}</style><body><div id="a"><span id="b">One</span><span id="d">Two</span></div></body></html>