Get the latest tech news
CSS adds vertical centering in 2024
CSS finally adds vertical centering in 2024
The status quo for CSS alignment is to switch to flexbox or grid because align-content doesn’t work in the default layout ( flow). It’s amazing that CSS finally has a single property to control vertical align after decades of progress! While in CSS, both justify-* and align-* are like text justification, because they accept values like space-between; they just mean different axes!
Or read this on Hacker News