News for hackers. Stuff that matters.
Re:Solved by Flexbox by vukers on Friday May 22, 2015 @03:00PM (#9590291)
Absolute centering only works when the element you are trying to center has a defined height. If you are trying to center an element with unknown height inside a container with unknown height, the table-cell is likely the front-runner, sadly.
Re:Solved by Flexbox by pcwalton on Friday May 22, 2015 @03:06PM (#9590322)
I like the translateY(-50%) trick. But yeah, it is a pain point. Hence flexbox.
Re:Solved by Flexbox by Touche on Friday May 22, 2015 @10:14PM (#9591750)
People always suggest margin auto but at least for me having defined heights for elements is the very rare exception.