Box 1
Flexbox in short, is a set of properties in CSS introduced in 2009 to provide a new, exceptional layout system. The Flexbox module is identified as a part of the third version of CSS (CSS3).
Primary ButtonBox 1
Box 2
Box 3
Box 4
Box 5
flexbox Has Many Benefits
Creating smart layouts
A “half/half” layout is a full height layout with two columns, each with its content centered vertically. Using more traditional techniques, you could create this layout with floated elements (of width 50% each), clearing the floats into the wrapper (“clearfix” :before and :after, overflow: hidden, or a whacky <div> with clear: both; in the end). Yet it is a lot of work and the result is not as stable as what Flexbox provides.
Flexbox has many more benefits
Setting flexible width/height of elements depending on available space is easy.
But in actual fact, flexbox is very well supported, at 95.89% global support.
With only 3 declarations, we can achieve a perfectly centred child element.
With flexbox, we can deal with inline elements effortlessly. We can align the elements edge-to-edge.