It doesn’t always work like the other browsers. Here is something to try out: More info: https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/