Things You Can Do With Flexbox That Were Impossible Without It

What are the completely new things you can do with Flexbox that you couldn't have done before using only CSS (no layout changes). I understand that Flexbox makes many layout problems much simpler and easier to maintain, but I am also interested in knowing what unique features it brings that were completely impossible before. After reading some articles, I still can not crystallize any detailed list in my mind, so far I can only come with 2:

  • Mixing elements layout with fixed and relative sizes. In many cases, this can be done using the calc function (although it will quickly become erratic), but I think that some borderline cases cannot be compensated without adding extra markup (or am I mistaken if this is possible?)
  • Displaying things in an order completely independent of the original order
+5
source share

Source: https://habr.com/ru/post/1213124/


All Articles