728x90 justify-content2 [ flex ] justify-content justifiy-content 자식요소 정렬에 대한 속성이다 html 자식요소 justifiy-content : center; 자식요소 가운데 정렬 .parent{ display: flex; border: 5px solid #000; justify-content: center; } .child{ background-color: rgb(57, 246, 130); width: 200px; height: 200px; color: #fff; text-align: center; line-height: 200px; } justify-content:flex-start; 자식요소 왼쪽 정렬 .parent{ display: flex; border: 5px solid #000; justify-content: flex-st.. 2022. 12. 30. [ flex ] 부모 요소 / 자식 요소에 사용하는 flex 부모요소 display : flex 사용 (flex | inline-flex) flex-direction : 자식요소 수평 정렬 ( row | column ) flex-wrap : 자식요소 수직 정렬 ( nowrap | wrap-reverse ) justify-content : 자식요소 배치 방향 ( flex-start | flex-end | center | space-between | space-arount ) align-items : 너비를 줄이기, 줄바꿈 ( flex-start | flex-end | center | baseline | stretch ) align-content : 자식요소 여러 줄 일때 ( flex-start | flext-end | center | space-between | s.. 2022. 12. 30. 이전 1 다음 728x90 반응형