기본개념
1) 부모 요소(flex container)
flex-direction : row가 기본
(이때 중심 축은 수평)
flex-wrap: nowrap이 기본
(그외: wrap,wrap-reverse)
flex-flow: flex-direction과 flex-wrap 한꺼번에 씀
ex) flex-flow:row wrap / flex-flow:column wrap
justify-content: 중심 축 아이템 정렬
flex-start, flex-end, space-around, space-between
align-items: 반대 축 정렬
flex-start,flex-end
baseline(글꼴 기준선으로 아이템 정렬됨, row는 적용되는데 column방향에서는 적용X)
align-content: 반대 축 아이템 정렬, 여러 줄 사이의 간격을 지정(flex-wrap:wrap이 반드시 있어야 함), stretch 기본값
align-content
를 사용하여 여러 줄 사이의 간격을 지정
2) 자식 요소(flex item)
적용 방법: 자식 요소를 flex로 설정하려면 부모 요소에 display:flex 입력
축, 방향