Find the Flexbox Mistake
Find the Mistake Easy
Question
The items are not laying out as a row. Find and fix the mistake.
Code
.container {
flex-direction: row;
justify-content: center;
}
Hint
Flexbox requires a specific display value to activate.
Explanation
The container is missing 'display: flex'. Without it, flex-direction and justify-content have no effect — the container behaves as a normal block element. Add 'display: flex;' to activate flexbox layout.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.