본문 바로가기
웹코딩 배우기/· CSS

justify-content + align-items 이용해 아이템 중앙에 놓기

by 닐기 2021. 10. 13.

See the Pen flex center by nilgi (@nilgi) on CodePen.

 

display: flex;
justify-content: center; // 가로 중앙
align-items: center; // 세로 중앙

 

flex로 하니까 어렵네.