What is Flexbox?

The Flexible Box Module, usually referred to as flexbox, was designed as a one-dimensional layout model, and as a method that could offer space distribution between items in an interface and powerful alignment capabilities. This article gives an outline of the main features of flexbox, which we will be exploring in more detail in the rest of these guides.

Why Flexbox instead of Float?

If we use float in our website, it will lose the entire flow of our website. Therefore, using float is not a promotive or good idea. Instead of float we use flex , it gives us complete control over the website and makes alignments easier.