Role of CSS flex-wrap property wrap value

CSSWeb DevelopmentFront End Technology

Use the flex-wrap property with wrap value to wrap flex-items.


You can try to run the following code to implement the wrap value −

Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            background-color: orange;
            flex-wrap: wrap;
         .mycontainer > div {
            background-color: white;
            text-align: center;
            line-height: 40px;
            font-size: 25px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">
Published on 23-May-2018 09:11:21