data-type

<content-position> — CSS reference

Positional content alignment locates a group at start, end, center or applicable flex-relative edges. It does not distribute space among items.

Formal Syntax & Structure

css syntaxcss
justify-content: center;

Working Example

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