In 2024, CSS introduces the `align-content` property for vertical centering in flow layout, eliminating the need for flexbox or grid. Previously, achieving vertical alignment required complex workarounds. This update simplifies the process, allowing vertical alignment with a single CSS property in the default layout.

•7m read time•From build-your-own.org
Post cover image
Table of contents
What’s new?Vertical centering — a historyGoing 2-dimensionalWhy is CSS so confusing?
37 Comments

Sort: