Make the list a flex row.
Acceptance criteria
- 1.Make the list a flex row.
CSS Tutorial · CSS Projects
These 10 tasks go with the Responsive CSS Project 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: “Combine tokens, fluid sizing, Grid, Flexbox, container queries, theming, and reduced-motion handling in one page. The project combines tokens, layers, fluid sizing, Grid, container queries, theming, focus treatment, content stress tests, and user preferences.” .
1.Lay the list out in a rowexercise · easy · 10 min
Make the list a flex row.
Passes when: Make the list a flex row.
2.Space the itemsexercise · easy · 10 min · practice plan
Put a 12px gap between the items.
Passes when: Put a 12px gap between the items.
3.Stack on narrow screensexercise · easy · 10 min · practice plan
At 500px wide, stack the items into a column.
Passes when: At 500px wide, stack the items into a column.
4.Let items growexercise · easy · 10 min · practice plan
Allow each item to share the space equally.
Passes when: Allow each item to share the space equally.
5.A responsive card rowexercise · medium · 10 min · practice plan
A flex row with a gap that stacks below 600px.
Passes when: A flex row with a gap that stacks below 600px.
6.Fix the layout that never became flexbug fix · easy · 8 min
The container is still a block.
Passes when: The container is still a block.
7.Fix the spacing added with marginbug fix · easy · 8 min · practice plan
Flex containers space children with gap.
Passes when: Flex containers space children with gap.
8.Fix the query that never matchesbug fix · easy · 8 min · practice plan
The preview is 500px, so a min-width of 900px never applies.
Passes when: The preview is 500px, so a min-width of 900px never applies.
9.Fix the grow value on the wrong elementbug fix · easy · 8 min · practice plan
The items grow, not the container.
Passes when: The items grow, not the container.
10.Fix the gap not reduced when stackedbug fix · easy · 8 min · practice plan
The narrow layout should use a smaller gap.
Passes when: The narrow layout should use a smaller gap.
Between them these tasks cover Media queries, Flexible layout and Spacing.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.