Exercise Difficulty: BeginnerLanguage: HTML/CSSDuration: 45 min
Responsive Layout Challenge
Build a three-column marketing page that collapses gracefully from desktop to mobile using modern grid and flexbox.
Abhishek Sharma 2026-08-15 Web Development / Frontend / CSS
Problem statement
Beginner HTML/CSS 45 min
Recreate the supplied three-column marketing page with CSS grid for the shell and flexbox inside each card, then make it collapse cleanly to a single column on phones.
Requirements
- Full-width header with a centered content rail
- Three feature cards above 1024px, two above 768px, one on phones
- No horizontal scrolling at 320px
- All interactive elements reachable by keyboard
Need a reference?
Refresh the concepts before attempting the challenge on your own.
MDN: CSS grid layoutCompare with the solution
Finish your attempt first, then open the reference solution to compare trade-offs.
Open the layout patterns guideStretch goal
Add a dark theme driven entirely by custom properties.
Want more like this?
Browse the full exercises library, organised by topic.
Related learning
Tutorial
Introduction to CSS
Learn what CSS is and why it matters
Web Development / Frontend / CSS
CSSWeb Development
Tutorial
History of CSS
Understand how CSS evolved
Web Development / Frontend / CSS
CSSWeb Development
Tutorial
Adding CSS
Three ways to add CSS to a page
Web Development / Frontend / CSS
CSSWeb Development