we can now control how they grow, shrink, add sapce between them and so on
default left to right
flexible growth
grow into any available room
like columns in excel we give it a value to take up this many columns
flex-grow:2 grow at this rate.
flexible shrink
flex-shrink:1 will shirnk content based on class sizing
the bigger the number i.e shrink rate the more it shrinks
we shrink elements in relation to one another
flex-wrap
when we shrink the page by defaults it shrink each elements upon reaching a point it can no longer shrink the elements it goes off horizontally of the page
when we reach min-width we want the elements to wrap around to the next line
we do that by adding flex-wrap: wrap to the container
if we have flex grow enabled the next line will grow accordingly
we can also do flex: wrap-reverse to reverse the wrap on top
flex-basis
similar to minimum width; it sets the width of the element
set the starting size of the elements
flex-basis
minimum width will cause the scrolling behavior to be unpredictable where as flex-basis will just shrink the elements on reaching the minimum width