Role of CSS flex-direction property row value

CSSWeb DevelopmentFront End Technology

Use the flex-direction property with row value to set the flex-items horizontally.

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


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            flex-direction: row;
            background-color: orange;
         .mycontainer > div {
            background-color: white;
            text-align: center;
            line-height: 40px;
            font-size: 25px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">
Updated on 24-Jun-2020 15:40:42