Usage of CSS align-content property center value

Use the align-content property with value center to set the flex lines to the center.

You can try to run the following code to implement the center value


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            height: 200px;
            background-color: red;
            align-content: center;
            flex-wrap: wrap;
         .mycontainer > div {
            background-color: yellow;
            text-align: center;
            line-height: 60px;
            font-size: 30px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">