Focus video player for keyboard shortcuts
Auto
- 720p
- 540p
- 360p
1.00x
cc
- 0.50x
- 0.75x
- 1.00x
- 1.25x
- 1.50x
- 1.75x
- 2.00x
We hope you enjoyed this lesson.
Cool lesson, huh? Share it with your friends
About this lesson
Showing different web page designs based on different sized devices.
Exercise files
Download this lesson’s related exercise files.
Media Queries58.9 KB Media Queries - Solution
59 KB
Quick reference
Media Queries
A media query allows us to create different designs based on different sized devices (ie phones, tablets, desktop computers etc).
When to use
You'll use media queries any time you design for mobile.
Instructions
Here's the main format of a media query:
@media only screen and (max-width: 768px) {
[class*="col-"] {
width: 100%;
}
}
Hints & tips
- Media queries allow us to create different designs for different sized screens.
- We refer to them as breakpoints.
Lesson notes are only available for subscribers.