The novel way to center vertically
The modern way to align text or elements vertically does not depend on the flexbox and is supported in all browsers
2 min readMay 5, 2024
Until recently, the flexbox layout was the most straightforward way of the few possible twisted approaches to align text or a child element vertically inside a div
:
display: flex…