Complete the code to create a flex container using Tailwind CSS.
<div class="[1]"> <div>Item 1</div> <div>Item 2</div> </div>
The flex class creates a flex container, which is essential for flexible layouts.
Complete the code to center items horizontally and vertically using Tailwind CSS.
<div class="flex [1] [2] h-64 bg-gray-200"> <div>Centered Content</div> </div>
The items-center class centers items vertically (cross-axis) and justify-center centers them horizontally (main-axis) inside a flex container.
Fix the error in the code to create a responsive grid with 3 columns on medium screens.
<div class="grid [1] gap-4"> <div>Box 1</div> <div>Box 2</div> <div>Box 3</div> </div>
The class md:grid-cols-3 sets the grid to 3 columns starting at medium screen sizes, making it responsive.
Fill both blanks to create a two-column layout with a gap and padding using Tailwind CSS.
<div class="grid [1] gap-6 [2]"> <div>Left Column</div> <div>Right Column</div> </div>
grid-cols-2 creates two columns, and p-4 adds padding of 1rem around the container.
Fill all three blanks to create a responsive flex container with vertical centering, horizontal spacing, and wrapping.
<div class="flex [1] [2] [3]"> <div>Item A</div> <div>Item B</div> <div>Item C</div> </div>
items-center vertically centers items, space-x-4 adds horizontal spacing between items, and flex-wrap allows items to wrap to the next line on smaller screens.