.page-layout { flex: 1 0 auto; display: flex; flex-direction: column; .content { flex: 1 0 auto; display: flex; -webkit-flex-direction: column; flex-direction: column; margin: $primary-padding; } }