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.

CSS CSS Layout Basics Controlling Layout with CSS Display Modes Positioning Elements Side-By-Side with Inline Display

1 Answer

Ryan McFarlane
Ryan McFarlane
14,104 Points

The 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.