728x90
부모요소
- 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 | space-arount | stretch )
자식요소
- flex : 비율 (정수)
- order : 순서 (정수)
- align-self : 수직 정렬 시 개별적으로 조정( auto | flex-start | flex-end | center | baseline | stretch )
'프로그래밍-웹 > 반응형웹' 카테고리의 다른 글
[ flex ] justify-content (0) | 2022.12.30 |
---|---|
[ flex ] 요소 정중앙에 배치하기 (0) | 2022.12.30 |
[ 반응형 ] 01. 개발환경 준비하기 (0) | 2022.12.28 |
댓글