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 The Media Queries Solution

Teacher Russell
Teacher Russell
16,873 Points

Choosing break points

Still looking for an answer:) Can we walk through the moments leading to choosing the specific breaking points? Are you flexing the page on dev tools, looking at the px and at what points it looks best? Did you draw this site up beforehand and choose specific points then? At what point and exactly how does each site pick it's exact breaking points? I was also very confused when I read somewhere that most screens are 1024px and then the last site we made here had a breaking point of 1024px, but that's another matter. Thanks in advance.

I use these breakpoints from BootStrap as a reference: /* Extra small devices (phones, less than 768px) */

/* Small devices (tablets, 768px and up) */

/* Medium devices (desktops, 992px and up) */

/* Large devices (large desktops, 1200px and up) */

1 Answer

Steven Parker
Steven Parker
231,269 Points

I think the best way to set break points is to consider what looks best on the sizes, and not to worry about the actual sizes of specific devices.

New devices come out all the time, and old ones get discarded, so going strictly by what looks good will be a more robust option anyway.

Teacher Russell
Teacher Russell
16,873 Points

So, we should flex it on dev tools, and just pick the break points where it doesn't look the way we'd like it to, right? Depending on the site, I guess this could be accomplished with 1 query, but you could do several, right?

Steven Parker
Steven Parker
231,269 Points

Yes, that's essentially the process I would use and recommend.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

If possible try to limit breakpoints to no more than 3, but really, use as many as necessary to make your websites look good. :)