Recall & Review
beginner
What does
items-center do in Tailwind CSS?It aligns flex items to the center along the cross axis (vertical axis in a row flex container).
Click to reveal answer
beginner
Which Tailwind class aligns items to the start of the cross axis?items-start aligns flex items to the start (top in a row) of the cross axis.Click to reveal answer
beginner
How does
items-end affect flex items?It aligns flex items to the end (bottom in a row) of the cross axis.
Click to reveal answer
intermediate
What is the difference between
items-center and justify-center?items-center centers items vertically (cross axis), while justify-center centers items horizontally (main axis) in a flex container.Click to reveal answer
intermediate
If a flex container has <code>flex-col</code>, which Tailwind class aligns items to the center horizontally?Use
items-center to align items horizontally center because the cross axis is horizontal in a column flex container.Click to reveal answer
In a flex container with
flex-row, which Tailwind class aligns items at the bottom?✗ Incorrect
items-end aligns items to the end of the cross axis, which is bottom in a row flex container.What does
items-baseline do in Tailwind CSS?✗ Incorrect
items-baseline aligns flex items so their text baselines line up.Which Tailwind class aligns items to the center along the cross axis?
✗ Incorrect
items-center aligns all flex items to the center on the cross axis.If you want to align a single flex item differently from others, which Tailwind class do you use?
✗ Incorrect
self-start aligns a single flex item to the start of the cross axis, overriding the container's items-* setting.In a flex container with
flex-col, which axis is the cross axis?✗ Incorrect
When flex direction is column, the cross axis is horizontal.
Explain how
items-start, items-center, and items-end affect flex items along the cross axis.Think about vertical alignment in a row flex container.
You got /4 concepts.
Describe the difference between
items-center and justify-center in Tailwind flexbox.Consider horizontal vs vertical alignment.
You got /4 concepts.