CSS shorthand property for the flex-grow, flex-shrink, and the flex-basis properties

Use the flex property to add flex-grow, flex-shrink and flex-basis properties in a single line.

You can try to run the following code to implement the flex property


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            background-color: orange;
         .mycontainer > div {
            background-color: white;
            text-align: center;
            line-height: 40px;
            font-size: 25px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">
         <div style = "flex: 20 0 350px">Q4</div>