Usage of CSS align-content property space-between value

CSSWeb DevelopmentFront End Technology

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: red;
            align-content: space-between;
            flex-wrap: wrap;
         .mycontainer > div {
            background-color: yellow;
            text-align: center;
            line-height: 60px;
            font-size: 30px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">
Updated on 24-Jun-2020 15:59:06