Recall & Review
beginner
What does
overflow-hidden do in Tailwind CSS?It hides any content that goes outside the bounds of its container, preventing scrollbars from appearing.
Click to reveal answer
beginner
How does
overflow-scroll behave in Tailwind CSS?It always shows scrollbars, allowing users to scroll the content even if it fits inside the container.
Click to reveal answer
intermediate
What is the difference between
overflow-auto and overflow-scroll?overflow-auto shows scrollbars only when content overflows, while overflow-scroll always shows scrollbars regardless of content size.Click to reveal answer
beginner
Which Tailwind class would you use to allow horizontal scrolling only?Use
overflow-x-auto to enable horizontal scrolling when content overflows horizontally.Click to reveal answer
intermediate
Why is overflow handling important in responsive design?
It prevents content from breaking layouts on small screens by controlling how extra content is shown or hidden, improving user experience.
Click to reveal answer
Which Tailwind class hides overflowing content without scrollbars?
✗ Incorrect
overflow-hidden hides content that goes outside the container and does not show scrollbars.What does
overflow-auto do?✗ Incorrect
overflow-auto adds scrollbars only when the content is bigger than the container.To enable vertical scrolling only, which class should you use?
✗ Incorrect
overflow-y-auto enables vertical scrolling when needed.What happens if you use
overflow-visible?✗ Incorrect
overflow-visible lets content spill outside the container without clipping or scrollbars.Why might you use
overflow-x-auto on a small screen?✗ Incorrect
On small screens, wide content can be scrolled horizontally using
overflow-x-auto.Explain how you would control overflow in Tailwind CSS to improve layout on small screens.
Think about hiding content or allowing scrollbars depending on the situation.
You got /3 concepts.
Describe the difference between overflow-scroll and overflow-auto in Tailwind CSS.
Consider when scrollbars appear in each case.
You got /3 concepts.