Case File: The Page That Broke on Phones
A shop's page was built on a wide desktop screen. On a phone the cards run off the edge and visitors scroll sideways, because it was built with fixed widths and floats. Rebuild the layout so that it adapts to any width: the viewport meta tag, CSS grid that fits as many columns as there is room for, a gap, images that shrink, and a media query. The lab tests the real rendered layout. The shop and the cards are generated for you alone.
Case File: The Page That Broke on Phones
A shop's page was built on a wide desktop screen. On a phone the cards run off the edge and visitors scroll sideways, because it was built with fixed widths and floats. Rebuild the layout so that it adapts to any width: the viewport meta tag, CSS grid that fits as many columns as there is room for, a gap, images that shrink, and a media query. The lab tests the real rendered layout. The shop and the cards are generated for you alone.
In this lesson:
- css
- responsive design
- grid
- viewport
- media queries
- mobile first
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans