4 ms·
If you can afford not to support IE9 [1], you don't need a 500K - 1MB framework to center vertically and horizontally by using flexbox (align-items: center; jus
by nip 10y ago
If you can afford not to support IE9 [1], you don't need a 500K - 1MB framework to center vertically and horizontally by using flexbox (align-items: center; justify-content: center) on the parent container.
[1] http://caniuse.com/#feat=flexbox http://caniuse.com/#feat=flexbox
- andrei_says_ 10y agoI am looking forward to the day when I don't have to support ie9
- amenod 10y agoFortunately this is not much of an issue because IE is on its well deserved way of dinosaurs and Dodo the bird (my sympathies to those who can't get rid of it because of some dated corporate standards) and Edge doesn't seem to have much impact either. It would fill me with endless joy years back had I known its fate and the success MS will have in next computing platform (mobile). Good riddance!
- 91bananas 10y agoOr you can support it but not give them vertically centered content. Screw em. If they want it to be 5 years ago, let them be 5 years ago. FIVE!
- salmo 10y agoI like to call this degrading gracefully :)