Role of CSS justify-content property space-between value

CSSWeb DevelopmentFront End Technology

Use the justify-content property with value space-around to add space between the flex-items.

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


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            background-color: red;
            justify-content: space-between;
         .mycontainer > div {
            background-color: orange;
            text-align: center;
            line-height: 60px;
            font-size: 30px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">
Published on 24-May-2018 08:34:34