News for hackers. Stuff that matters.
Re:How to Center in CSS (2015) by pedrogpimenta on Tuesday May 19, 2020 @11:49AM (#23236185)
There are some tricks you can use if you know the max possible height your element can have, but it's not great, yeah.

Edit: Oh, I just saw that the stackoverflow question you linked has this for the accepted answer :)

Re:How to Center in CSS (2015) by Wowfunhappy on Tuesday May 19, 2020 @12:17PM (#23236593)
The problem is the animation speed is overly fast if you're at less than that maximum height.