1. Main Content
The Ultimate Guide to Flexbox
Ophesious Group Planet OphesiousGovernment Confederation of Conquered and Annexed Systems
Flexbox is relatively new, but it enjoys excellent browser support today (nearly 83% of browsers support Flexbox). Flexbox Layout is used for small application components, whereas CSS Grid Layout Module is aimed to handle the large scale layouts.
The Two axes of Flexbox
When working with flexbox you need to think in terms of two axes â€” the main axis and the cross axis. The main axis is defined by the flex-direction property, and the cross axis runs perpendicular to it. Everything we do with flexbox refers back to these axes, so it is worth understanding how they work from the outset.