4 ms·
This is has been a problem for a long time, but it's fixed now: https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/ https://philipwalton.
by bla2 11y ago
This is has been a problem for a long time, but it's fixed now:
https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/ https://philipwalton.github.io/solved-by-flexbox/demos/verti...
http://caniuse.com/#feat=flexbox http://caniuse.com/#feat=flexbox
- sago 11y agoIt'll be a while, sadly. IE8-10 are still up to 25% of the browsers[0] (caniuse puts them much lower, which isn't surprising for sampling dev oriented sites). IE10 (5% of that) needs a different syntax, and 8-9 don't support it. All three support table layout[1], which is why it is still the best solution if you care about compatibility. [0] https://www.netmarketshare.com/browser-market-share.aspx?qprid=2&qpcustomd=0&qpcustom= https://www.netmarketshare.com/browser-market-share.aspx?qpr... [1] http://caniuse.com/#feat=css-table http://caniuse.com/#feat=css-table
- hayksaakian 11y agoI don't think his kid needs to worry about supporting old IE.
- sago 11y agoReally? You don't think his kid's peers might not have the latest IE at home? Lot's of them will be on mobile, true (though some of them will be on Android's pre 4.4 browser, which also doesn't support it fully), but if they want to check from school, then school machines are neither likely to be the latest, nor the most diligently updated. I wasn't trying to be a smartarse, I wish flexbox was usable. But IE < 11 is still a very large player.
- cstejerean 11y agoIt isn't a very large player. Most websites will not see anywhere near 25% of IE < 11, even though that may be the global distribution. Even some of our most conservative enterprise clients have upgraded to IE 11. I'm not entirely sure how Microsoft pulled this off, but I'm impressed at how quickly they are pushing everyone to a modern browser. If you start a new project today, there is almost no reason to care about IE < 11. By the time you get enough users that IE itself becomes a sizeable number, I am willing to bet that IE < 11 will be around 5% of users on the high end.
- hatsix 11y agoI doubt the author's daughter cares about legacy browser support.
- sago 11y agoA dismissive dev's 'legacy' browser, is 25% of actual web users. You can dismiss them as legacy if you like, but there isn't a minimum age before you get told your site sucks because a quarter of people get crap when they load it. I pretty sure my kid would care if that happened.
- jsprogrammer 11y agoIt's a chance to do good in the world. Throw in some legacy detection and spit out a big message to legacy users to upgrade to a modern browser.
- jacquesm 11y agoThey are using a modern browser. Modern => something that was produced in the last couple of years. That the computer industry still can't get stuff right and forces users into an upgrade (which may or may not work, could quite possibly lead to a borked browser or even a totally borked system leading them to have to 'upgrade' to a more modern operating system, which in turn may require them to shell out money for new hardware) is no reason to push the responsibility for the laziness of web developers onto the end users.
- sago 11y agoAnd if they can't upgrade, or won't, or don't want to, or don't trust you to tell them to install something? We went through this years ago with IE6, there were always plenty of devs with variations of "screw 'em", but blaming or penalising users for their set up is a bit of a dick move, and shutting out or inconveniencing a big chunk of potential market is not a good business strategy. There does come a point where the cost of supporting a browser exceeds the value of the people using it, but I'd be surprised if most sites have hit that for IE8 (the third most used browser, more than twice the market share of the most used firefox).