flexbox footer won't stick to bottom unless content is tall
This is doing my head in. Simple page, header, main, footer. I want the footer at the bottom of the viewport when there's little content, but pushed down normally when there's a lot. min-height: 100vh on the container with flex-direction: column and margin-top: auto on the footer works on Chrome 123 but in Safari 17 the footer sits mid-screen. Am I missing a prefix or is my approach wrong?
3 replies