December 10, 2019
.container {
min-height: 100%;
display: flex;
flex-direction: column;
.footer {
margin-top: auto;
}
}min-height: 100%
margin-top: auto 속성으로 자식 요소를 화면 아래에 배치
flex item에 margin-top: auto 속성을 적용하면 바깥 여백이 flex item을 위쪽에서 아래쪽으로 밀기 때문에 flex item이 아래쪽에 위치하게 된다.