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 trialAakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 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 M
16,509 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.