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.
JAE IN KIMFront 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???
Steven Parker218,654 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.