Prior to the Flexbox Layout module, there were four layout modes:
The Flexible Box Layout Module simplifies the creation of flexible, responsive layout structures without relying on float or positioning techniques.
To initiate utilization of the Flexbox model, you must initially designate a flex container.
The element depicted above denotes a flex container (indicated by the blue area) containing three flex items.
Example
A flex container comprising three flex items.
<div class=”flex-container”> <div>1</div> <div>2</div> <div>3</div> </div> |