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 triallesak
6,260 PointsMedia queries' widths How do you know which width to set for the different screen sizes when using media queries?
For example, in the project the min-width for the second media query was set at 1025px? Why this size? Thanks for your help.
4 Answers
Jakob Wozniak
17,896 Pointshttp://lmgtfy.com/?q=media+query+breakpoints
:) But no joke- learning to google things like this is a necessary skill in this craft.
Jennifer Nordell
Treehouse TeacherHere's a pretty decent list of devices and the standard sizes for media queries. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
lesak
6,260 PointsThanks for this link. It's great info.
Abraham Juliot
47,353 PointsShort answer: Let your content decide the widths.
"Don't define breakpoints based on device classes. Defining breakpoints based on specific devices, products, brand names, or operating systems that are in use today can result in a maintenance nightmare. Instead, the content itself should determine how the layout adjusts to its container." https://developers.google.com/web/fundamentals/design-and-ui/responsive/#how_to_choose_breakpoints
brandonlind2
7,823 PointsYou could probably use the dev tools, if you go to "more tools", then "developer tools", a window should pop up and on the far left top corner there should be an icon of square and a mouse arrow, directly left of that there should be another icon with a box and a smart phone, click on the box and smart phone icon and it should open up a tool that allows you to see how your website would look in different devices. At the top there should be a drop down menu were you can pick different devices, it should show the different device's widths. I hope that helps
lesak
6,260 PointsThanks Brandon. This is helpful for small devices. I just wasn't sure about the sizing for desktops.
lesak
6,260 Pointslesak
6,260 PointsHaha. This is very funny. I might have to steal your joke. Thanks for sharing.