Question

In which order the values of the flex items' flex shorthand property are specified?

And which are the default values?

#css #flexbox

Answer

flex: <flex-grow> <flex-shrink> <flex-basis>;

Default values

flex-grow: 0
flex-shrink: 1
flex-basis: auto

[^1]: https://medium.freecodecamp.com/understanding-flexbox-everything-you-need-to-know-b4013d4dc9af#acf8

[^2]: https://developer.mozilla.org/en-US/docs/Web/CSS/flex

Learn

Author

xavi

Reviews
Last
next

Students 1