Question

What's the flex items' flex-basis property for?

#css #flexbox

Answer

The flex-basis property specifies the initial size of a flex item. Before the flex-grow or flex-shrink properties adjust its size to fit the container or not.

It can take on the same values as the width property, i.e. percentages, ems, rems, pixels, etc.

https://medium.freecodecamp.com/understanding-flexbox-everything-you-need-to-know-b4013d4dc9af#4bde

Learn

Author

xavi

Reviews
Last
next

Students 1