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 trialSmita Tarawade
4,716 PointsNested media queries.
Can we create a media query inside a media query? I've been asked this question in an interview.
2 Answers
Colin Marshall
32,861 PointsAs with many things in web development, the answer is, "It depends on the browser." It looks like there is good support for most modern browsers with the exception of, not surprisingly, Internet Explorer. Some older Android browsers also were lacking support for nested media queries.
Can I Use: Media Queries - the browsers with a 1 in the upper left corner do not support nested media queries.
Smita Tarawade
4,716 PointsThank you Colin Marshall, that was helpful. But why do we need nested media queries? Where they can be used?