🔥 NEW Code Tidbit Every Week 🔥

# Day 7: Display

To start this Flexbox party, we need to first create our flex container. This is done by applying flex to the display property on the parent element. Bam! Now all its immediate children will become flex items 🎊

There are 2 types of flex container: flex will create a block level flex container, and inline-flex will create an inline level flex container. More on block and inline in the next post 😉

.parent {
  display: flex /* default */
        or inline-flex
}

More Courses