Flexbox is also a type of container like div. However, it provides dynamic scaling of elements. This is because it can grow, shrink and align the items inside it which give better control to the programmer over the contents and styling of the items inside the container.

<aside> πŸ’‘ Quick facts of flexbox;

  1. It is 1-dimensional i.e. elements in flexbox can be arranged in either row(default) or column
  2. Has 2 axes β†’ main and cross axis </aside>

Applications of flexbox:

  1. Search bar
  2. Navigation bar
  3. Image gallery
  4. Bar charts

A Complete Guide to Flexbox | CSS-Tricks

Alignment Properties

Units of measurement