Flexbox – is literally what many web developers were dreaming about for many years. In a nutshell, this is a new layout model which is supposed to replace old good float and inline-block.
Flexbox gives us the opportunity to operate block elements as we please. We can line them up in a row or column, align them vertically (yes, yes) and horizontally. We can specify how the blocks should behave when the browser window resizes. We can change the order of the blocks and much more.