Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Responsive Layouts Media Queries Media Query Review

just wondering why nick uses multiple media queries and guil uses just 2 media queries which are in 769px and 1024px

just wondering why nick uses multiple media queries and guil uses just 2 media queries which are in 769px and 1024px and never used orientation

2 Answers

Anders Söderström
PLUS
Anders Söderström
Courses Plus Student 10,318 Points

From my personal experience, I would say that the use of media queries vary alot from project to project. If the page layout works well on all devices media queries are unnecessary. Try out your sites on all kinds of devices, both landscape and portrait mode, and see what media query rules that best suits your project.

Tl:dr, sometimes orientation isn't necessary for your layout ?

Regarding this specific case, and from my quick play with using the orientation feature, a desktop view is considered landscape. So setting that width is still important, to ensure that it is only mobile/small screens in landscape.