CSS div.flex-container { display:-webkit-box; display:-moz-box; display:-ms-flexbox; display:-webkit-flex; display:-moz-flex; display:flex; -webkit-box-pack:center; -moz-box-pack:center; -webkit-flex-pack:center; -moz-flex-pack:center; -ms-flex-pack:center; -webkit-justify-content:center; -moz-justify-content:center; justify-content:center; }
![Flexアイテム全体の主軸に沿った位置または余白を制御 | CSS3逆引き | Webサイト制作支援 | ShanaBrian Website](https://cdn-ak-scissors.b.st-hatena.com/image/square/3b858bea6a098f079db2c84e97691f59bf5003a4/height=288;version=1;width=512/https%3A%2F%2Fshanabrian.com%2Fcommon%2Fimg%2Fog_logo.png)