what flex in css code example

Example 1: display flex

.container {
     display: flex;
     align-items: center;
     justify-content: center;
}

//My youtube:'https://www.youtube.com/HasibulIslambd'

Example 2: css flex

.container {
  flex-wrap: nowrap | wrap | wrap-reverse;
}

Example 3: css flex property

flex: none                                            /* value 'none' case */
flex: <'flex-grow'>                                   /* One value syntax, variation 1 */
flex: <'flex-basis'>                                  /* One value syntax, variation 2 */
flex: <'flex-grow'> <'flex-basis'>                    /* Two values syntax, variation 1 */
flex: <'flex-grow'> <'flex-shrink'>                   /* Two values syntax, variation 2 */
flex: <'flex-grow'> <'flex-shrink'> <'flex-basis'>    /* Three values syntax */
flex: inherit

Tags:

Css Example