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 CSS Basics (2014) Enhancing the Design With CSS Adjusting the Layout with Media Queries

JAE IN KIM
seal-mask
.a{fill-rule:evenodd;}techdegree
JAE IN KIM
Front End Web Development Techdegree Student 6,794 Points

at Media query lesson, is the value that set in max-width 1024px inherited into 768px max-width?

the video at 7:50, he added margin and padding 0px into max-width 1024px. then this value will be inherited to max-width:769px???

1 Answer

Steven Parker
Steven Parker
231,269 Points

Perhaps "inherited" isn't the best term to use, it has a special meaning in CSS.

But you have the right idea, the settings in a previous media query will still be in effect in the next one if both conditions fit (as they would in this case). The 2nd query can of course override any with new settings as needed.