What is CSS3 Flexbox Layout?

CSS3 Flexbox Layout is the advance form of CSS Box Layout. Previously, to control layout we use float, display or position. Flexbox layout gives the same feature and additional features like changing direction, orders, size etc. It is usually flexible box which makes easy to build responsive website. The two main things required to create flexbox is flex container (parent element) and flex item (child element).

Code Structure to create flex container
.flexcontainer {
 display: flex;

Share this

Related Posts