Flexbox Basics
🏡 HomeFlexbox is much better for laying out elements on a page and is better than anything we have seen so far.
Flexbox is syntactic sugar for inline and block layouts. The following is a cheatsheet of the basics.
Flex Direction
You can set flex box to either align column-wise or row-wise. It is row-wise by default.
Justify Content
This controls how elements are laid-out on the main axis.
Flex-Start
This is the default.
Flex-End
Center
Space-Between
Space-Around
Space-Evenly
Align Items
This controls how items are aligned on the secondary-axis.