DEV Community

Discussion on: How to Vertically Align Anything with CSS

jassehomar profile image
Omar Jasseh • Edited on

you forgot to mention something when using flexbox, centering everything to the middle of the parent container does not just work like that, for the align-items: center to work the flex container should have a height defined. Eg: min-height: 100%