Give #wrap three columns.
Acceptance criteria
- 1.Give #wrap three columns.
CSS Tutorial · CSS Layout
These 10 tasks go with the Multi-column Layout chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “Flow long-form content through balanced columns and control how elements break across them. The examples cover automatic column count, preferred column width, column rules, spanning headings, and fragmentation controls.” .
1.Split into columnsexercise · easy · 10 min
Give #wrap three columns.
Passes when: Give #wrap three columns.
2.Size the columnsexercise · easy · 10 min · practice plan
Give #wrap a 200px column width.
Passes when: Give #wrap a 200px column width.
3.Add a column gapexercise · easy · 10 min · practice plan
Give #wrap a 30px column gap.
Passes when: Give #wrap a 30px column gap.
4.Add a divider ruleexercise · easy · 10 min · practice plan
Add a 2px solid rule between columns.
Passes when: Add a 2px solid rule between columns.
5.Span all columnsexercise · medium · 10 min · practice plan
Make #box span every column.
Passes when: Make #box span every column.
6.Fix the misspelled propertybug fix · easy · 8 min
The property is column-count.
Passes when: The property is column-count.
7.Fix the missing unitbug fix · easy · 8 min · practice plan
column-width needs a unit.
Passes when: column-width needs a unit.
8.Fix the rule with no stylebug fix · easy · 8 min · practice plan
Without a style the column rule has no width.
Passes when: Without a style the column rule has no width.
9.Fix the gap propertybug fix · easy · 8 min · practice plan
The gap between columns is column-gap.
Passes when: The gap between columns is column-gap.
10.Fix the span valuebug fix · easy · 8 min · practice plan
Spanning every column uses the value all.
Passes when: Spanning every column uses the value all.
Between them these tasks cover column-count, column-width, column-gap and column-rule.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.