4 ms·
Having to still support IE 11 for most projects, I really like the following: div { position: absolute; right: 50%; bottom: 50% transform: translate(50
by jacobedawson 6y 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%);
}
- onion2k 6y agoIE11 supports most of flexbox. You don't need hacks.
- jacobedawson 6y agoforgot the <
- RyanGoosling 6y agoIt's time to learn flexbox
- cosmotic 6y agoIt'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.
- onion2k 6y agoFlexbox is far simpler than the box model.
- dirtnugget 6y agoBox Model is a living mess