Responsive Design
Your site on a phone shouldn’t look like a crime scene.
▶ the lesson · ~35s · narrated · tap for sound
the intro
Responsive design means one website that adapts to every screen size. You write styles for small screens first, then add media queries as the screen grows. Combined with fluid units and flexible images, the same code works everywhere.
the sample
phone first, then grow
.cards {
display: grid;
gap: 16px;
}
@media (min-width: 768px) {
.cards { grid-template-columns: 1fr 1fr; }
}fun fact ✦
The term “responsive web design” comes from Ethan Marcotte’s 2010 article — three ideas that changed everything.
the docs
quick hits about Responsive Design
15-second answers · interviews, tips, trivia & hidden gems
🎤 interview
Why write mobile CSS first?
📚 tutorial
Where do breakpoints come from?
🔧 useful
Why does mobile ignore your media queries?
🔧 useful
Testing phones without buying phones?
🆕 update
Style a component by ITS own size?
🧠 trivia
Who invented responsive design?