data-type

<content-distribution> — CSS reference

Distributed alignment keywords include space-between, space-around, space-evenly and stretch, subject to the property. With two flex items space-between places all free space between them.

Formal Syntax & Structure

css syntaxcss
justify-content: space-between;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>&lt;content-distribution&gt;</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{display:flex;width:200px;justify-content:space-between}#a span{width:20px}</style><body><div id="a"><span>A</span><span>B</span></div></body></html>
CSS Reference