3 ms·
To be fair, centering with flex doesn't require the parent to have any particular positioning set. The only reason you need to set the width/height is because
by iaml 9y ago
To be fair, centering with flex doesn't require the parent to have any particular positioning set. The only reason you need to set the width/height is because the centering happens inside 0 size box, which wouldn't happen if your problem is centering something inside existing box.