CSS flex Property

CSS flex Property


CSS flex Property
 
In this tutorial, you will learn about CSS flex Property with the help of examples:- flex property is a shorthand property for the flex-grow, flex-shrink, and flex-basis properties.
 
Syntax -
 
flex: flex-grow flex-shrink flex-basis|auto|initial|inherit;
 
Where the property values are property themselves.
 
Now we will see an Example -
 
Example - 
 
Output -