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!

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 CSS Layout Basics Controlling Layout with CSS Display Modes Positioning Elements Side-By-Side with Inline Display

1 Answer

Ryan McFarlane
Ryan McFarlane
15,987 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.