Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,625 Pointsmedia query
Guil put the last code- .name a, .main-nav a{ padding: 10px 15px; } outside the media query , and instead of that we see the effect on full window how?
1 Answer

Ryan McFarlane
14,104 PointsThe media query he used is a min-width query, so it applies styles only to viewports at least 769px wide. Rules outside of media queries apply regardless of screen size, so the rules before it apply to the links at any screen size. Since the declaration is not overwritten in the subsequent media query, the padding will always be the same.