Flexbox란?
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;Grid와 구분
- Flex — 한 방향 (내비, 카드 안 정렬)
- Grid — 두 방향 (전체 레이아웃)
둘을 조합해 쓰는 게 현대 CSS.
1차원 CSS 레이아웃 시스템. 행 또는 열 단일 방향 유연 배치.
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;둘을 조합해 쓰는 게 현대 CSS.