Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
In our last video, we used CSS media queries to optimize our layout for the printed page. While that’s useful, and a fun exercise, I would imagine you’re anxious to design for different screen sizes. After all, few things are more exciting for a front end web developer than launching a site that looks equally great on a small and large screen. To target different characteristics of the screen viewing our web page, we need more than just to select the media type, as we did in our last video. We need to write CSS rules that apply only when certain characteristics are met–when the device is in landscape format, for example, or when the viewport is wider than 800 pixels.
Further reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Jeremy Yochum
Front End Web Development Techdegree Graduate 16,023 Points2 Answers
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
Alex Hort-Francis
17,074 Points1 Answer
-
susan kaldenberg
Front End Web Development Techdegree Student 553 Points1 Answer
-
ja5on
10,338 Points2 Answers
-
Debashri Mishel Dutta
2,047 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up