CSS finally adds vertical centering in 2024 | Blog | build-your-own.org
Briefly

Starting in 2024, the CSS property align-content works for the default flow layout, enabling vertical centering without requiring flexbox or grid structures.
The new functionality of align-content in the flow layout allows for easy vertical centering with a single CSS property, eliminating the need for complex workarounds.
It's refreshing to see a long-awaited feature in CSS that provides a straightforward solution for vertical alignment, simplifying developers' workflow significantly.
Historically, developers needed various methods like tables or absolute positioning for vertical alignment; now they can simply use align-content.
Read at build-your-own.org
[
|
]