CSS Overflow — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the CSS Overflow lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Clip the overflow
easy10 minHide anything that overflows #box.
- 2
Always show scrollbars
easy10 minForce scrollbars on #box.
- 3
Scroll only when needed
easy10 minUse auto so scrollbars appear only if required.
- 4
Scroll one axis
easy10 minAllow horizontal scrolling only.
- 5
Build a scroll box
medium10 minFixed height with vertical scrolling.
Find the bug(5)
- 1
Fix the misspelled value
easy8 minThe value is hidden.
- 2
Fix the wrong axis
easy8 minThe horizontal axis should scroll, not the vertical one.
- 3
Fix the scroll box with no height
easy8 minWithout a height there is nothing to scroll.
- 4
Fix the wrong property
easy8 minThe property is overflow, not overflows.
- 5
Fix hidden used where auto was intended
easy8 minContent is being clipped instead of made scrollable.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace