DEV Community

loading...

Discussion on: How to Vertically Align Anything with CSS

Collapse
jassehomar profile image
Omar Jasseh • Edited

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%