Looking For An Alternative To Flex
Solution 1:
You can achieve the same result using lot of techniques in css, i'll show you some examples:
Using Inline-block element
https://codepen.io/joaoskr/pen/OaEdJz
Using Float left
https://codepen.io/joaoskr/pen/JeZxXX
Using table alignment
https://codepen.io/joaoskr/pen/zMaewv
As you can see, you have lots of possibility to achieve the same result without use flex, choose which you think better, hope it can help you !!
Solution 2:
You can use a polyfill for the browsers that don't support flexbox. For example: https://github.com/jonathantneal/flexibility
Modernizr has several options listed here: https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills#flexible-box-layout-spec
That way you can still use flexbox and also support other browsers.
Solution 3:
Most modern browser versions support flex, however you may want to include some browser specific rules for legacy support.
-webkit-flex:
for Chrome 21.0+/Safari 6.1+
-ms-flex:
for IE10
-moz-flex:
for Firefox 18.0+
Post a Comment for "Looking For An Alternative To Flex"