Complete the code to make the flex container wrap its items.
<div class="flex [1]"> <div class="w-24 h-24 bg-blue-500"></div> <div class="w-24 h-24 bg-red-500"></div> <div class="w-24 h-24 bg-green-500"></div> </div>
The flex-wrap class makes the flex container wrap its items onto multiple lines if needed.
Complete the code to prevent flex items from wrapping.
<section class="flex [1] gap-4"> <div class="w-20 h-20 bg-yellow-400"></div> <div class="w-20 h-20 bg-purple-400"></div> <div class="w-20 h-20 bg-pink-400"></div> </section>
The flex-nowrap class keeps all flex items on a single line without wrapping.
Fix the error in the flex container class to make items wrap in reverse order.
<div class="flex [1]"> <div class="w-16 h-16 bg-indigo-600"></div> <div class="w-16 h-16 bg-teal-600"></div> <div class="w-16 h-16 bg-orange-600"></div> </div>
The flex-wrap-reverse class wraps flex items but reverses the wrap order.
Fill both blanks to create a flex container that wraps items and arranges them in a column.
<div class="flex [1] [2] gap-2"> <div class="w-20 h-10 bg-gray-700"></div> <div class="w-20 h-10 bg-gray-500"></div> <div class="w-20 h-10 bg-gray-300"></div> </div>
Using flex-wrap allows wrapping, and flex-col arranges items vertically in a column.
Fill all three blanks to create a flex container that wraps items in reverse order and arranges them in a row.
<section class="flex [1] [2] [3] gap-3"> <div class="w-16 h-16 bg-red-400"></div> <div class="w-16 h-16 bg-green-400"></div> <div class="w-16 h-16 bg-blue-400"></div> </section>
flex-wrap-reverse wraps items in reverse order, and flex-row arranges items horizontally.