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!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of css

css

Related news:

News photo

Microsoft 365 anti-phishing feature can be bypassed with CSS

News photo

Rapidly build efficient sites with Neat, the minimalist CSS framework

News photo

Show HN: I made a drag and drop CSS grid generator