CSS align-self property

CSSWeb DevelopmentFront End Technology

Set the alignment of any flex-item with the align-self property. You can try to run the following code to implement the CSS align-self property


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            height: 300px;
            background-color: orange;
         .mycontainer > div {
            background-color: white;
            text-align: center;
            line-height: 90px;
            font-size: 40px;
            width: 100px;
            margin: 50px;
      <div class = "mycontainer">
         <div style = "align-self: center">Q4</div>
Updated on 24-Jun-2020 14:55:44