Vertical Centering with CSS

from blog linkedlist, | ↗ original
Vertical centering with CSS has been easy for a couple of years now. Both flexible box layout and grid layout support it. Just use them together with the align-content property. div { display: grid; /* or flex */ align-content: center; } And it is about to become even simpler. The specification of the align-content property was not limited to...