A Flexible Layout has a parent element with the display property set to flex. Direct child elements(s) of the flex container automatically becomes flex items.
.flex-container { display: flex; background-color: indianred; } .flex-container > div { background-color: powderblue; margin: 10px; padding: 20px 100px 20px 100px; font-size: 30px; }
<div class="flex-container">
<div>1</div>
<div>2</div>
<div>3</div>
</div>