Complete the code to make the first box appear first using Tailwind's order utility.
<div class="flex"> <div class="order-[1] bg-blue-500 p-4 text-white">Box 1</div> <div class="order-1 bg-green-500 p-4 text-white">Box 2</div> </div>
Setting order-0 on Box 1 makes it appear before Box 2 which has order-1. Lower order values appear first.
Complete the code to center the third box vertically using Tailwind's self-alignment utilities.
<div class="flex h-32"> <div class="self-start bg-red-400 p-4">Box 1</div> <div class="self-end bg-yellow-400 p-4">Box 2</div> <div class="self-[1] bg-green-400 p-4">Box 3</div> </div>
self-auto which inherits alignment from the container.self-stretch which makes the item fill the container height.Using self-center centers the third box vertically within the flex container.
Fix the error in the code to make the first box appear last using Tailwind's order utility.
<div class="flex"> <div class="order-[1] bg-purple-600 p-4 text-white">Box 1</div> <div class="order-1 bg-pink-600 p-4 text-white">Box 2</div> <div class="order-2 bg-indigo-600 p-4 text-white">Box 3</div> </div>
Setting order-3 on Box 1 places it after Box 2 (order-1) and Box 3 (order-2), making it appear last.
Fill both blanks to create a flex container where the second box appears first and the third box is centered vertically.
<div class="flex h-40"> <div class="order-2 bg-red-400 p-4">Box 1</div> <div class="order-[1] bg-green-400 p-4">Box 2</div> <div class="order-3 self-[2] bg-blue-400 p-4">Box 3</div> </div>
Setting order-1 on Box 2 makes it appear before Box 1 (order-2). Using self-center on Box 3 centers it vertically.
Fill all three blanks to create a flex container where Box A appears last, Box B is centered vertically, and Box C appears first.
<div class="flex h-48"> <div class="order-[1] bg-yellow-400 p-4">Box A</div> <div class="order-2 self-[2] bg-pink-400 p-4">Box B</div> <div class="order-[3] bg-teal-400 p-4">Box C</div> </div>
Box A with order-3 appears last. Box B with self-center is vertically centered. Box C with order-0 appears first.