CSS Flexbox(컨테이너)에 대한 실용적인 치트 시트
치트 시트(위 그림)만 원하시면 you can download it here !
목차
Horizontal Alignment
Vertical Alignment
Content Direction
Content Wrapping
수평 정렬
항목을 그룹으로 또는 개별적으로 수평으로 정렬할 수 있습니다.
중앙에 앵커 그룹(수평)
.container {
display: flex;
justify-content: center;
}

앵커 그룹을 오른쪽으로
.container {
display: flex;
justify-content: flex-end;
}

모든 항목 주위에 공간 추가
.container {
display: flex;
justify-content: space-around;
}

모든 항목 사이에 공백 추가
.container {
display: flex;
justify-content: space-between;
}

수직 정렬
항목을 그룹으로 세로로 정렬할 수 있습니다.
중앙에 그룹 고정(수직)
.container {
display: flex;
align-items: center;
}

앵커 그룹을 맨 위로
.container {
display: flex;
align-items: flex-start;
}

하단에 앵커 그룹
.container {
display: flex;
align-items: flex-end;
}

완벽한(수직 및 수평) 중앙 정렬
선택기를 결합하여 원하는 레이아웃을 얻을 수 있습니다. Flexbox를 사용하면 완벽한 센터링이 매우 쉽습니다.
.container {
display: flex;
align-items: center;
justify-content: center;
}

콘텐츠 방향
전체 콘텐츠 흐름(열 또는 행)을 변경할 수 있으며 콘텐츠 배열도 변경할 수 있습니다.
콘텐츠 흐름 반전(수평)
.container {
display: flex;
flex-direction: row-reverse;
}

콘텐츠를 가로 대신 세로로 흐르게 함
.container {
display: flex;
flex-direction: column;
}

콘텐츠 흐름 반전(수직)
.container {
display: flex;
flex-direction: column-reverse;
}

콘텐츠 래핑
기본적으로 모든 항목은 한 줄에 표시됩니다.
.container {
display: flex;
}

내용을 다음 줄로 줄 바꿈(아래로 흐름)
.container {
display: flex;
flex-wrap: wrap;
}

내용을 이전 줄로 줄 바꿈(위로)
.container {
display: flex;
flex-wrap: wrap-reverse;
}

기본 동작
Flexbox의 기본 동작은...
.container {
display: flex;
}

시간을 내어 확인해 주셔서 감사합니다! 뭔가 빠진 것 같거나 그냥 인사하고 싶다면 아래에 댓글을 남겨주세요! ✌️
Reference
이 문제에 관하여(CSS Flexbox(컨테이너)에 대한 실용적인 치트 시트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/voracious/a-practical-cheat-sheet-for-css-flexbox-401p텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)