Re:CSS adds vertical centering in 2024
by pinkmuffinere on Sunday August 18, 2024 @12:16PM
(#41283233)
Per the article, _align_ is for vertical distribution, and _justify_ is for horizontal. The example is actually behaving correctly. The naming is confusing though, imo
[ Parent
| on HN ]
Re:CSS adds vertical centering in 2024
by red_trumpet on Sunday August 18, 2024 @12:27PM
(#41283304)
Well, to center the text in flow layout, you would use text-align:center;
Ah! Thanks for the correction. Unfortunately it's not centered vertically either. It's in the top left.
Re:CSS adds vertical centering in 2024
by pinkmuffinere on Sunday August 18, 2024 @01:19PM
(#41283676)
Oh lol that’s not great