Recall & Review
beginner
What does
min-w- utility in Tailwind CSS do?It sets the minimum width of an element, ensuring it does not get smaller than the specified size.
Click to reveal answer
beginner
How does
max-h- affect an element in Tailwind CSS?It limits the maximum height of an element, so the element cannot grow taller than the set value.
Click to reveal answer
intermediate
Why use min and max sizing constraints in responsive design?
They help keep elements readable and usable by preventing them from becoming too small or too large on different screen sizes.
Click to reveal answer
beginner
Which Tailwind class sets a minimum height of 16rem?The class
min-h-64 sets the minimum height to 16rem (64 × 0.25rem).Click to reveal answer
intermediate
What happens if an element's content is larger than its max-width in Tailwind CSS?
The element will not grow beyond the max-width; content may overflow or wrap depending on other styles.
Click to reveal answer
Which Tailwind class sets a maximum width of 24rem?
✗ Incorrect
max-w-48 sets max width to 12rem because 48 × 0.25rem = 12rem.What does
min-h-full do in Tailwind CSS?✗ Incorrect
min-h-full means minimum height is 100% of the parent container's height.If you want an element to never be smaller than 10rem wide, which class do you use?
✗ Incorrect
min-w-40 sets minimum width to 10rem (40 × 0.25rem).What is the effect of
max-h-screen in Tailwind CSS?✗ Incorrect
max-h-screen limits max height to the full height of the browser window.Which class would you use to ensure an element's width can grow but never exceed 50% of its container?
✗ Incorrect
max-w-1/2 sets the maximum width to 50% of the parent container.Explain how min-width and max-width constraints help in building responsive web layouts using Tailwind CSS.
Think about how elements behave on small vs large screens.
You got /4 concepts.
Describe how you would use Tailwind CSS classes to set a box that is at least 12rem wide but no wider than 20rem.
Recall how Tailwind spacing scale works.
You got /4 concepts.