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 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