Hacker News new | ask | show | jobs
by jacobedawson 2228 days ago
Having to still support IE 11 for most projects, I really like the following:

div { position: absolute; right: 50%; bottom: 50% transform: translate(50%, 50%); }

2 comments

IE11 supports most of flexbox. You don't need hacks.
forgot the <
It's time to learn flexbox
It's too bad flexbox isn't as easy to understand as box model; that puts the breaks on adoption, regardless of how well it handles the centering scenario.
Flexbox is far simpler than the box model.
Box Model is a living mess