Show the flex lines with equal space between them

Use the align-content property with value space-between to add space between the flex lines.


You can try to run the following code to implement the space-between value

Live Demo

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