Challenge - 5 Problems
Breakpoint Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate2:00remaining
What is the effect of this Tailwind class?
Consider the class
md:text-center. What does it do?Attempts:
2 left
💡 Hint
Think about what the
md: prefix means in Tailwind.✗ Incorrect
The md: prefix applies the style starting from the medium breakpoint and up. So md:text-center centers text on medium, large, extra large, and 2xl screens, but not on smaller ones.
❓ rendering
intermediate2:00remaining
Which Tailwind class combination makes text red on small screens and blue on large screens?
You want text to be red on small screens and blue on large screens. Which class combination achieves this?
Attempts:
2 left
💡 Hint
Remember that unprefixed classes apply to all sizes unless overridden.
✗ Incorrect
The class text-red-500 applies red text on all screen sizes. The lg:text-blue-500 overrides it starting at large screens, making text blue there.
❓ selector
advanced2:00remaining
Which breakpoint prefix applies styles only on screens 1536px wide or larger?
Tailwind uses these breakpoint prefixes: sm, md, lg, xl, 2xl. Which prefix applies styles starting at 1536px width?
Attempts:
2 left
💡 Hint
Check Tailwind's default breakpoint pixel values.
✗ Incorrect
The 2xl prefix applies styles starting at 1536px width and above.
🧠 Conceptual
advanced2:00remaining
How does Tailwind apply breakpoint prefixes in CSS?
How does Tailwind implement breakpoint prefixes like
sm: or lg: in the generated CSS?Attempts:
2 left
💡 Hint
Think about how CSS handles responsive design.
✗ Incorrect
Tailwind wraps breakpoint-prefixed styles inside CSS media queries with min-width matching the breakpoint value.
❓ accessibility
expert3:00remaining
Which breakpoint prefix usage best supports accessibility for users resizing text or zooming?
When using Tailwind breakpoint prefixes, which practice best supports accessibility for users who resize text or zoom the page?
Attempts:
2 left
💡 Hint
Think about how zoom and text resizing affect CSS units.
✗ Incorrect
Using relative units like em or rem for breakpoints allows layouts to adapt better when users zoom or resize text, improving accessibility.