Flex Direction and Wrap
flex-direction chooses row or column. flex-wrap lets items move to new lines. flex-flow combines them.
Example
<style>
.f { display: flex; flex-flow: row wrap; gap: 6px } .f div { background: #0f766e; padding: 8px; width: 90px }
</style>
<div class="f"><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div></div>Exercise
Allow new lines.
flex-wrap: ;
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.