1_ display : flex + flex-direction
#Default 상황 :
- display : static
- Div Container > Div RedBox, GreenBox, BlueBox
#알아야 할 개념 :
- 큰 Box 안에 작은Box들(요소들)의 배치 방향을 정하는 속성
=> 큰 Box(Container)을 display : flex , flex-direction 속성의 속성값 : row,row-reverse, column ,column-reverse
#display : flex + flex-direction : row => 왼 → 오른쪽으로 배치된다.
// display : flex의 Default 값이다.
#display : flex + flex-direction : row-reverse => 오른쪽 → 왼쪽 (Blue , Green , Red)으로 배치된다.
#display : flex + flex-direction : column => 위 → 아래으로 배치된다.
#display : flex + flex-direction : column => 아래 → 위 (Blue, Green , Red)으로 배치된다.
※연습문제
해결방법 :
저 4개의 음악항목을 감싸는 Container Box인 playlists div에 display : flex + flex - direction : row를 걸면 된다.
@실제 사용 사례 : ...
'CodeIt_Sprint > CSS_레이아웃' 카테고리의 다른 글
(7)CSS_레이아웃_2_Flex Box_ 최종연습용 문제_ 풀이과정 (작성중) (0) | 2024.11.03 |
---|---|
(6)CSS_레이아웃_2_FlexBox-5-flex-grow, flex-shrink,6-flex-basis_연습문제2_분석 (0) | 2024.11.03 |
(5)CSS_레이아웃_2_FlexBox-5-flex-grow, flex-shrink,6-flex-basis (0) | 2024.11.03 |
(4)CSS_레이아웃_2_FlexBox-3-flex-wrap 속성, 4-display : flex + gap 속성 (0) | 2024.11.03 |
(3)CSS_레이아웃_2_FlexBox-2-justifiy-content,align-item 속성 (0) | 2024.11.03 |