3 ms·
I like the translateY(-50%) trick. But yeah, it is a pain point. Hence flexbox.
by pcwalton 11y ago
I like the translateY(-50%) trick. But yeah, it is a pain point. Hence flexbox.
- Touche 11y agoPeople always suggest margin auto but at least for me having defined heights for elements is the very rare exception.