News for hackers. Stuff that matters.
Re:How to Center in CSS (2015) by jacobedawson on Tuesday May 19, 2020 @11:28AM (#23235915)
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%); }

Re:How to Center in CSS (2015) by onion2k on Tuesday May 19, 2020 @11:32AM (#23235958)
IE11 supports most of flexbox. You don't need hacks.
Re:How to Center in CSS (2015) by jacobedawson on Wednesday May 20, 2020 @05:17AM (#23244843)
forgot the <
Re:How to Center in CSS (2015) by RyanGoosling on Tuesday May 19, 2020 @11:33AM (#23235965)
It's time to learn flexbox
Re:How to Center in CSS (2015) by cosmotic on Tuesday May 19, 2020 @12:52PM (#23237067)
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.
Re:How to Center in CSS (2015) by onion2k on Wednesday May 20, 2020 @06:59AM (#23245427)
Flexbox is far simpler than the box model.
Re:How to Center in CSS (2015) by dirtnugget on Thursday May 21, 2020 @06:36AM (#23256826)
Box Model is a living mess