property
Box pack — CSS reference
Deprecated historical CSS. Distributed spare space along the old box main axis. Modern justify-content:center centers a group of flex children along the main axis. Do not use the unprefixed historical syntax for new sites.
Formal Syntax & Structure
css syntaxcss
box-pack: center;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>box-pack</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{justify-content:center}</style><body><div id="a"><div id="b">A</div><div id="c">B</div></div></body></html>