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.

CSS jQuery Basics (2014) Creating a Mobile Drop Down Menu Perform: Part 3

Ian VanSchooten
Ian VanSchooten
3,549 Points

Choice of media query based on device or site content?

Instead of targeting the iPhone specifically (or any given device), wouldn't it make more sense to find the point at which the menu (or other content) begins to wrap and look ugly, and set the breakpoint based on that?

2 Answers

Andrew McCormick
Andrew McCormick
17,730 Points

we always go with content. It's great to target certain device widths if you know that your site has heavy traffic from a certain device, but what happens to your site when Apple comes out with the iPhone 7xys and it's screen resolution is completely different than all other phones?

yeah you could do that, but if you want your website to look different on certain devices, you should go for specific device widths, but if you want it to looks the same, you can have 1 breakpoint where it wraps and make the website look the same on every devices!

hope this helps!

Kind regards.

// Erdrag