CSS Form Styling — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the CSS Form Styling 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
Style the input
easy10 minGive #input 8px padding and a 1px solid #cccccc border.
- 2
Style the button
easy10 minGive #btn a navy background and white text.
- 3
Stack the label
easy10 minPut #label on its own line.
- 4
Limit the textarea resize
easy10 minLet #area resize vertically only.
- 5
Lay out the form
medium10 minStack the fields in a column with a 12px gap.
Find the bug(5)
- 1
Fix the border with no style
easy8 minA border needs a style to be drawn.
- 2
Fix the swapped colours
easy8 minThe button should be navy with white text.
- 3
Fix the inline label
easy8 minA label on its own line needs display: block.
- 4
Fix the resize value
easy8 minVertical-only resizing uses the value vertical.
- 5
Fix the row layout
easy8 minThe fields should stack in a column.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace