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: Mobile Meltdown
Mr. Bansal had to scroll sideways. At a wedding. In front of his in-laws. I showed our menu to my in-laws on my phone and had to scroll SIDEWAYS. They…
The problem
- I showed our menu to my in-laws on my phone and had to scroll SIDEWAYS. They laughed.
- • On phones: no sideways scrolling, cards one under the other.
- • On computers: keep three in a row, it looks premium.
- Must pass: No sideways scrolling on a phone (375px).
- Must pass: Cards stack on phones.
- Must pass: Three in a row on desktop (1024px).
You'll use: HTML · CSS · Accessibility · Responsive design · Forms
Solve it free in your browser3–6 min · You write HTML & CSS
Show a hint
The fixed width: 960px on .grid is what overflows a 375px phone. Remove it.
What this teaches (spoiler)
Design mobile-first: avoid fixed widths, let layouts reflow with grid/flex and media queries, and keep body text at 16px or more.