align-content works in the default layout in 2024, allowing vertical centering with 1 CSS property. <div style="align-content: center; height: 100px;"> <code>align-content</code> just works! </div> Supported since: Chrome: 123 | Firefox: 125 | Safari: 17.4 What’s new? The status quo for CSS alignment is to switch to flexbox or grid because align-content doesn’t work in the default layout (flow). I