Make the #text paragraph flow inline.
Acceptance criteria
- 1.Make the #text paragraph flow inline.
CSS Tutorial · CSS Layout
These 10 tasks go with the CSS Display 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: “The CSS Display property determines how an HTML element is displayed on a webpage.” Read the chapter.
1.Use inlineexercise · easy · 10 min
Make the #text paragraph flow inline.
Passes when: Make the #text paragraph flow inline.
2.Use inline-blockexercise · easy · 10 min · practice plan
Make #box inline-block.
Passes when: Make #box inline-block.
3.Use flexexercise · easy · 10 min · practice plan
Make #wrap a flex container.
Passes when: Make #wrap a flex container.
4.Use gridexercise · easy · 10 min · practice plan
Make #wrap a grid container.
Passes when: Make #wrap a grid container.
5.Hide an elementexercise · medium · 10 min · practice plan
Remove #box from the layout entirely.
Passes when: Remove #box from the layout entirely.
6.Fix the misspelled valuebug fix · easy · 8 min
The value is inline-block.
Passes when: The value is inline-block.
7.Fix flex spelled as flexboxbug fix · easy · 8 min · practice plan
The display value is flex.
Passes when: The display value is flex.
8.Fix the hidden element still taking spacebug fix · easy · 8 min · practice plan
opacity: 0 leaves the box in the layout.
Passes when: opacity: 0 leaves the box in the layout.
9.Fix grid spelled wrongbug fix · easy · 8 min · practice plan
The value is grid.
Passes when: The value is grid.
10.Fix display set on the wrong elementbug fix · easy · 8 min · practice plan
The container should be the flex parent.
Passes when: The container should be the flex parent.
Between them these tasks cover Display values and Choosing the right box type.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.