CSS flex-flow Property

To set both the flex-direction and flex-wrap properties, use a single property flex-flow


You can try to run the following code to implement the flex-flow property to set the direction and wrap property of flex −

Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            background-color: orange;
            flex-flow: column wrap;
         .mycontainer > div {
            background-color: white;
            text-align: center;
            line-height: 40px;
            font-size: 25px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">