.flex-item:nth-child(1) {
  flex:1;
}
The above
flex
property is a shorthand of the following properties:
.flex-item:nth-child(2) {
  flex-grow:1;
  flex-shrink:1;
  flex-basis:0;
}
In the example, the first two elements have the same effect
by Valeri Tandilashvili
5 years ago
CSS
properties
CSS Flexbox Course
2
Pro tip: use ```triple backticks around text``` to write in code fences