CSS Display — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the CSS Display 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
Use inline
easy10 minMake the #text paragraph flow inline.
- 2
Use inline-block
easy10 minMake #box inline-block.
- 3
Use flex
easy10 minMake #wrap a flex container.
- 4
Use grid
easy10 minMake #wrap a grid container.
- 5
Hide an element
medium10 minRemove #box from the layout entirely.
Find the bug(5)
- 1
Fix the misspelled value
easy8 minThe value is inline-block.
- 2
Fix flex spelled as flexbox
easy8 minThe display value is flex.
- 3
Fix the hidden element still taking space
easy8 minopacity: 0 leaves the box in the layout.
- 4
Fix grid spelled wrong
easy8 minThe value is grid.
- 5
Fix display set on the wrong element
easy8 minThe container should be the flex parent.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace