Lesson 23 of 50
cssResponsive Design – Media Queries
10 mins
Course progress46%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 23 of 50
css10 mins
Keep these ideas in mind as you work through the lesson.
Media queries let you apply styles conditionally based on device features.
@media (min-width:768px) {
.nav { display:flex; }
}
Common breakpoints:
@media (max-width: 599px) { … } – phones.@media (min-width:600px) and (max-width:1199px) { … } – tablets.@media (min-width:1200px) { … } – desktops.Feature queries (@supports) detect CSS support.
.nav { display:none; }
@media (min-width:600px) {
.nav { display:flex; }
}