Adding flex-grow is like a trick:
body { min-height: 100vh; display: flex; flex-direction: column; } .wrapper { display: flex; flex-direction: column; flex-grow: 1; justify-content: space-around; }
https://jsfiddle.net/uxgaaccr/2/
I don't know why, but height: 100% on .wrapper doesn't seem to be enough, it needs flex-grow . I think that with justify-content: space-around , extra white space was added that added to the height. Not sure about my reasoning, but it seems to work ...
Jazcash
source share