Complete the code to apply a flex container to the parent div.
<div class="[1]"> <div>Child 1</div> <div>Child 2</div> </div>
Using flex on the parent makes its children arrange in a row by default.
Complete the code to evenly space children horizontally inside the flex container.
<div class="flex [1]"> <div>Child 1</div> <div>Child 2</div> <div>Child 3</div> </div>
justify-between places equal space between children horizontally.
Fix the error in the code to make children stack vertically with space between them.
<div class="flex flex-col [1]"> <div>Child 1</div> <div>Child 2</div> <div>Child 3</div> </div>
When children are stacked vertically (flex-col), use space-y-4 to add vertical space between them.
Fill both blanks to create a grid container with 3 columns and gap between items.
<div class="grid [1] [2]"> <div>Child 1</div> <div>Child 2</div> <div>Child 3</div> <div>Child 4</div> </div>
grid-cols-3 sets 3 columns, and gap-4 adds space between all grid items.
Fill all three blanks to create a flex container that wraps children, centers them, and adds horizontal gap.
<div class="flex [1] [2] [3]"> <div>Child 1</div> <div>Child 2</div> <div>Child 3</div> <div>Child 4</div> </div>
flex-wrap allows children to wrap to next line, justify-center centers them horizontally, and gap-x-6 adds horizontal space between children.