3 ms·
I was looking into flexbox a little time ago and came away with the impression that display:table, while a bit less elegant, is substantially better supported a
by Tomte 11y ago
I was looking into flexbox a little time ago and came away with the impression that display:table, while a bit less elegant, is substantially better supported and a plausible solution for right now. Flexbox seemed to be more a possibility for some unspecified future.
(In that both are only supported in relatively recent browsers, but display:table was supported a bit further back, and across some important point, probably some important IE version, but I don't remember the details).
Has that changed?
- oblio 11y agodisplay: table is cool but as far as I remember if you want to do something equivalent to colspan or rowspan you're in for a lot of trouble... :(
- azernik 11y agoNope [1] - IE support only landed in IE10, and is only really usable in IE11 and Edge. In general, IE 8 and under is currently the cutoff for legacy browsers that no modern web technologies and polyfills will bother supporting anyway, and display:table is supported at least that far back [2]. [1] http://caniuse.com/#feat=flexbox http://caniuse.com/#feat=flexbox [2] http://caniuse.com/#feat=css-table http://caniuse.com/#feat=css-table
- ghinda 11y agoIronically IE9+ support for display:table is worse then IE8-, especially regarding inherited dimensions on child elements. I wrote a small grid library[1] using display:table, as a flexbox alternative for older browsers, and had no choice but to use js to fix IE support. Firefox also has some issues, don't know if because of the spec or the implementation, but those can be worked around with css. [1] https://github.com/ghinda/gridlayout https://github.com/ghinda/gridlayout
- lenkite 11y agoHow do you wrap lines using display:table ? Flexbox allows wrapping and alignment along the cross-axis.