Usage of CSS align-items property stretch value

CSSWeb DevelopmentFront End Technology

Use the align-items property with value stretch to stretch the flex-items.

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


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            height: 200px;
            background-color: red;
            align-items: stretch;
         .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 07:55:07