Complete the code to center items horizontally using Tailwind CSS.
<div class="flex [1]"> <div>Item 1</div> <div>Item 2</div> </div>
items-center which aligns items vertically (cross axis).content-center which aligns lines, not items.The justify-center class centers items along the main axis (horizontal in a row flex container).
Complete the code to space items evenly with equal space around them on the main axis.
<div class="flex [1]"> <div>Box 1</div> <div>Box 2</div> <div>Box 3</div> </div>
justify-between which adds space only between items, not around.justify-evenly which spaces items evenly but differently than around.The justify-around class adds equal space around each item on the main axis.
Fix the error in the code to align items to the end of the main axis.
<div class="flex [1]"> <div>Left</div> <div>Right</div> </div>
justify-left or justify-right which are not valid Tailwind classes.justify-flex-end which is not a Tailwind class.The correct Tailwind class to align items to the end on the main axis is justify-end.
Fill both blanks to create a flex container that spaces items evenly and centers them vertically.
<div class="flex [1] [2]"> <div>One</div> <div>Two</div> <div>Three</div> </div>
justify-center which centers items but does not space them evenly.items-start which aligns items to the top instead of centering.justify-evenly spaces items evenly on the main axis, and items-center centers items on the cross axis (vertical).
Fill all three blanks to create a flex container that aligns items to the start horizontally, centers them vertically, and wraps items to the next line if needed.
<div class="flex [1] [2] [3]"> <div>Alpha</div> <div>Beta</div> <div>Gamma</div> <div>Delta</div> </div>
justify-end which aligns items to the right.flex-wrap so items overflow instead of wrapping.justify-start aligns items to the start horizontally, items-center centers them vertically, and flex-wrap allows items to wrap to the next line.