The CSS Flexbox Layout Module was introduced to simplify the creation of flexible and responsive layout structures without relying on float or positioning.
To implement the CSS flex method, enclose the <div> elements within another <div> element and designate it as a flex container.
Example
“Using flex to align <div> elements side by side:”
<style> .mycontainer { display: flex; } .mycontainer > div { width:33%; } </style> |