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 trialChris Martinez
11,715 Pointswhy wouldn't i want to use "only" in every media query?
why wouldn't i want to use the word "only" in every media queery (at least the type we've done so far that are based on viewport size)?
1 Answer
Sarah Hoopes
6,304 PointsIn the previous video, Adaptive Layouts with Media Queries, it says: "The 'only' operator is useful for preventing older browsers that do not support media queries from applying the given styles". It then states that "it's optional and we don't have to use it, but it is recommended of you need the support of older browsers".
Since the lesson is creating something optimized for an iPhone, maybe they're assuming that a newer browser would be used?