Role of CSS justify-content property flex-end value

CSSWeb DevelopmentFront End Technology

Use the justify-content property with value flex-end to align the flex-items at the end.


You can try to run the following code to implement the flex-end value −

Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            background-color: red;
            justify-content: flex-end;
         .mycontainer > div {
            background-color: orange;
            text-align: center;
            line-height: 60px;
            font-size: 30px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">
Updated on 03-Jul-2020 07:51:35