CSS flex item properties

CSSWeb DevelopmentFront End Technology

The following are the flex-item properties

  1. order
  2. flex-grow
  3. flex-shrink
  4. flex-basis
  5. flex
  6. align-self

Let us see an example of flex-basis property

Set the length of a flex item with the flex-basis CSS property. You can try to run the following code to implement the flex-basis property


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            background-color: orange;
         .mycontainer > div {
            background-color: white;
            text-align: center;
            line-height: 40px;
            font-size: 25px;
            width: 100px;
            margin: 5px;
      <div class = "mycontainer">
         <div style = "flex-basis: 350px">Q4</div>
Published on 24-May-2018 16:10:40