All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Frontend Engineering · HTML & CSS · Intermediate
HTML & CSS practice: Readable, Please
The About page is grey, tiny and cramped. Our story must be at least 17px with roomy lines (1.5 or more). Mr. Bansal
The problem
- Our story must be at least 17px with roomy lines (1.5 or more).
- Must pass: Paragraphs are at least 17px.
- Must pass: Line height is at least 1.5.
You'll use: HTML · CSS · Accessibility · Responsive design · Forms
Solve it (expert level)3–6 min · You write HTML & CSS
Show a hint
.story p { font-size: 17px; }
What this teaches (spoiler)
Readable text needs size, spacing and contrast. Grey-on-white looks elegant and excludes a lot of readers.